Hi,
Since I installed zenphoto and GD bundle library, i noticed that every time i would go to the zenphoto admin or gallery pages that my server will become unresponsive and extremely slow.
A `ps aux` tell me that theses two process (which i have multiple instances)
`/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock`
and
`/usr/sbin/apache2 -k start`
I'm running a Ubuntu Server Jaunty with 512MbRAM only console and i never had any memory issue in the past and nothing as changed except for the install of zenphoto.
If i run htop and then go browse the zenphoto pages i see a CPU spike and Memory spike. The system will stay that way until i navigate away from the zenphoto page or kill the browser.
A look at the apache error log tell me that two file seem to be missing from the zp-core folder
`[Fri Aug 21 08:51:54 2009] [error] [client 192.168.1.24] File does not exist: /var/www/zenphoto/zp-core/js/scriptaculous, referer:
http://localhost:10025/zenphoto/``[Fri Aug 21 08:51:54 2009] [error] [client 192.168.1.24] File does not exist: /var/www/zenphoto/zp-core/js/prototype.js, referer:
http://localhost:10025/zenphoto/`And for a odd reason it seems that my mysqld log are empty, i'm looking into it to re-enable them.
Any help will be appreciated
Comments
I do not encounter this even on my shared hosting with 32MB php memory...
Zenphoto does not include scriptaculous and prototype. We moved to jQuery with 1.2.3. If your install complains about that you are probably not running the recent release or did not update correctly.
They coming out of a G10 14.7MegaPixel and they are at the max resolution.
Any idea how i could make them available in zenphoto but without crashing or killing my box. Maybe disabling the GD library and doing all the rotate by hands ?
As for the missing items (scriptaculous and prototype) I will remove all zenphoto folders and DB and re-install the latest release.
You can disable the gd libary because then Zenphoto will not work. The only option if you can't raise your php memory is to resize the images before uploading.
Since you are new you should know that these full images are always kept since Zenphoto generates all sized images from them. In case you change sizes they will be used again.