Hello,
a few hours ago I upgraded from 2.3B to stable G2.3.
All time I used gallery, I noticed that G2 work TOO slow.
And this performance almost not depends from amount of files in gallery.
I have P4 3,2 dedicated server with 2GB of RAM, my MySQL have settings for large mysql servers, my apache have optimal settings for high traffic, my PHP also have optimal settings for such server...
I have another one project, big forum (SMF 1.1.7 MySQL+PHP), on the same server, with 2+mln posts, 7000 users each day, 300 users at same time online, - this project works megafast on my server, pages loads ussually 0...0,5sec.
In comparison with Gallery: Gallery have only 50-70 users per day, not more than 10 users online... and gallery is tooooooooooooooooooooo slow. Each page returned in 2-3 seconds. This is too much. Google and other search engine bots even not want to crawl my web-site
What makes it so slow?
MySQL is optimized. In SHOW PROCESSES() I see, queries to gallery DB runs very fast. So, it looks that mySQL is not bottle neck. Then what? PHP acceleratiors...- i'm not use them and will not. Really, they sometimes load server more than help
I readed http://codex.gallery2.org/Gallery2:Performance_Tips
but it not helped...
My Gallery data:
Gallery URL = http://old.grodno.net/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.1 apache
Webserver = Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a PHP/5.2.1 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7d
Database = mysqli 4.1.22, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, Gd, NetPBM
Acceleration = full/1800, none/0
Operating system = FreeBSD hosting.grodno.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004
:/usr/obj/usr/src/sys/GENERIC i386
Default theme = classic
gettext = enabled
Locale = ru_RU
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 404
Rows in GalleryAccessSubscriberMap table = 8147
Rows in GalleryUser table = 40
Rows in GalleryItem table = 8134
Rows in GalleryAlbumItem table = 417
Rows in GalleryCacheMap table = 461
====================================================
additionally:
Gallery version (not just "2"):2.3, see above
PHP version (e.g. 5.1.6): PHP Version 5.2.1
PHPInfo Link (see FAQ):http://old.grodno.net/_phpinfo.php
Webserver (e.g. Apache 1.3.33): Server Version: Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a PHP/5.2.1 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7d Server Built: Mar 14 2007 17:18:14
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD): NetPbm
Operating system (e.g. Linux): FREEBSD 5.3-RELEASE i386 on standard
Browser (e.g. Firefox 2.0): Firefox 3.0.3, IE 7+, Opera 9.52