Hi all.
I Installed G2 without any problems .. a Friend upped a few pictures (about 200) of a LAN-Party and tell the url a lot of friends. Now Many Users visited the site and my webserver crashes.. i cannot go to the url .. a few minutes later it works but the gallery is very slow .. and it crashes again ... and so on...
is this a problem caused by the Web-Hoster or by Gallery2 ?
Greetz
Posts: 105
First, what G2 version, PHP version and Webserver?
Posts: 58
Is there any other page hosted on the same server? Can you access the other pages? If it's your server, you can check the log to see what happened.
My uneducated guess is that your server is overloaded, be it the bandwidth or hardware. Heard of the Slashdot effect?
Posts: 154
Slahdot, I thought he said there were not many users?
I have a server that seems to die here and there for no reason too. I wonder if it's related to g2, no one can seem to identify the problem, but if memory serves, it started happening not too long after installing g2
Posts: 3236
I've been running G2 and G1 at the same time for MONTHS now and the ONLY downtime on my server is due to power outages or me mucking with apache / php. I doubt there is any way that G2 could crash a server unless there was an issue with the specific version of the webserver or php.
Fortunatly, it is pretty easy to at the very least isolate G2 as the problem. Simply remove it to keep it from being accessed, if your stability issues go away it was almost certainly related to G2. Go dig around in log files and try and figure out what it is after that.
Posts: 7994
Theoretically, a PHP application should not be able to crash your server. However, it can place enough load on your server or use enough unusual code paths to expose a weakness in the PHP engine, or the Apache webserver. However, if your web server is crashing it's a bug in the web server itself (possibly with G2 as the trigger). The only real way to find out is to check your webserver error logs, as loyukfai suggests.