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
Allowed memory size of bytes exhausted...
- Jan
- Phoca Hero

- Posts: 49198
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Allowed memory size of bytes exhausted...
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:
really crazy values.
Phoca Demo Site:
Jan
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 18000Phoca 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 30If you find Phoca extensions useful, please support the project
-
erafaelmi
- Phoca Newbie

- Posts: 2
- Joined: 12 May 2011, 22:02
Re: Allowed memory size of bytes exhausted...
Thanks Jan
turn on pagination in Preferences works

turn on pagination in Preferences works