Can the Gallery2 Crash a Server?!

koDiacc

Joined: 2004-02-27
Posts: 3
Posted: Mon, 2004-12-20 16:38

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

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Mon, 2004-12-20 17:54

First, what G2 version, PHP version and Webserver?

 
loyukfai

Joined: 2004-11-29
Posts: 58
Posted: Mon, 2004-12-20 17:56

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?

 
jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Tue, 2004-12-21 03:55

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

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2004-12-21 04:25

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2004-12-21 20:17

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.