Re: [Phpgedview-talk] includes/session.php memory usage
Brought to you by:
canajun2eh,
yalnifj
From: Nathan S. H. <nat...@uk...> - 2007-10-02 07:29:23
|
Is it that it's the installation PGV that doesn't allow overriding of the php.ini settings or the installation of PHP itself? I think that "most" admins would have access to the PGV installation, so documentation should suggest changes firstly to PGV's config.php file first, and if that doesn't work and they have access to the server's php.ini file, then try changing the setting s there. I'm trying to help out with issues I've not found intuitive and where documentation is lacking in some way. I might even start to make changes to the wiki, as in places it assume more knowledge about PGV than a newbie (to PGV) actually has. Cheers Nathan John Finlay wrote: > One of the problems with PHP is that it includes the code in the memory limit. So it takes several megabytes to load up all of the code base. > > Some installations of PGV do not allow overwriting the php.ini setting. So if you can change the setting in PGV then you should, but if you can't change it there then you can try changing it in php.ini if you have access to edit it. > > How large is the GEDCOM file you are trying to upload. Others have successfully imported GEDCOMs in the range of 30Mb, but they have had to boost the memory limit up to about 128Mb. > > The memory requirements during import have been improved in the latest 4.1.1 release. > > --John > > > >> -----Original Message----- >> From: php...@li... [mailto:phpgedview- >> tal...@li...] On Behalf Of Nathan S. Haigh >> Sent: Monday, October 01, 2007 3:43 AM >> To: php...@li... >> Subject: [Phpgedview-talk] includes/session.php memory usage >> >> I've run into a memory limit problem with PGV 4.1 stable when uploading >> a large GEDCOM file. >> >> *Fatal error*: Allowed memory size of 33554432 bytes exhausted (tried to >> allocate 2904657 bytes) in >> */home/bo1nsh/public_html/gedview/includes/functions_import.php* on line >> *1511* >> >> I've done some investigations and it seems that includes/session.php >> uses an awful lot of memory (15Mb in my case). In particular >> includes/functions.php accounts for quite a good chuck of this usage >> (about 5Mb in my case). >> >> Can anyone clarify why the memory usage overhead is so high? Can this be >> reduced? >> >> Also, information here is mssleading: >> http://wiki.phpgedview.net/en/index.php/FAQ:_Questions_about_Installing_ph >> pGedView#Insufficient_memory >> >> It suggests that memory limits can be increased by modifying php.ini. >> However, this is not the case as the settings in PGV's config.php >> overrides this. >> >> Cheers >> Nathan >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Phpgedview-talk mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/phpgedview-talk >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Phpgedview-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpgedview-talk > > > |