Page 2 of 2
Allowed memory size Resource Hog
Posted: 08 Jan 2011, 19:05
by ossrevolution
Why does phoca gallery require so much resource usage?
My host, got it working with these values!!!!!!!!
php_value memory_limit 350M
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_execution_time 18000
php_value max_input_time 18000
Re: Allowed memory size of bytes exhausted...
Posted: 09 Jan 2011, 00:57
by Jan
Hi, sorry I don't understand, I run all my Phoca Gallery instances on 16MB (on one server on 32MB)
Creating thumbnails on your server is time or memory demanding but it is done by your GD library (Phoca Gallery tries to allocate max 50MB in case thumbnails creating). Thumbnails creating is done only one time, after all thumbnails are done, there is no need to increase memory limit and Phoca Gallery runs normally on 16MB (I have tested it on 8MB too) and 30sec scripting time.
Mostly this depends on:
- GD library on the server
- image sizes which are uploaded to the server.
- server performance, etc.
If thumnails are created, e.g. in frontend, Phoca Gallery loads e.g. 20 items from database (if pagination is used) and it only display img tags with links to images. For this no extra memory values are needed.
These:
Code: Select all
php_value memory_limit 350M
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_execution_time 18000
php_value max_input_time 18000
really crazy values.
Phoca Demo Site:
Code: Select all
php_value memory_limit 16M (50M while creating thumbnails set by ini_set)
php_value upload_max_filesize 2M (loading images larger than 2MB is not reasonable in internet - except some special cases)
php_value post_max_size 4M
php_value max_execution_time 30
php_value max_input_time 30
Jan
Re: Allowed memory size of bytes exhausted...
Posted: 12 May 2011, 22:12
by erafaelmi
Thanks Jan
turn on pagination in Preferences works
