We have an apache server on a shared machine with WHM and SSH access (often called a virtual personal server). A few weeks ago I had to rebuild apache to add the gd library, and I also updated the site adding some PHP/Mysql generated content.
The problem we have is that our mysql server keeps shutting itself down. Some investigation has shown that it's our 128MB of RAM that is maxing out at peak times that is causing this. This is however a new development. It's only started over the last few days, but is now happening 3 or 4 times a day. Our site only gets about 600 visitors a day on average and this shouldn't be too much for the server to cope with.
The only possible cause I can come up with is that some php scripts may be using large amounts of RAM. Is there any way to test this? I've used the 'top' command from the command line to view the processes that are using the most resources on the server, but all that gives is an ever changing list of values by PID (process id) which gives me no detail of the processes other than that they're httpd requests, and some of them are using upto 16% of the allocated RAM.
Do you guys ever test the server resources that your scripts use? If yes, how do you do it?
TIA,
Chris.
The problem we have is that our mysql server keeps shutting itself down. Some investigation has shown that it's our 128MB of RAM that is maxing out at peak times that is causing this. This is however a new development. It's only started over the last few days, but is now happening 3 or 4 times a day. Our site only gets about 600 visitors a day on average and this shouldn't be too much for the server to cope with.
The only possible cause I can come up with is that some php scripts may be using large amounts of RAM. Is there any way to test this? I've used the 'top' command from the command line to view the processes that are using the most resources on the server, but all that gives is an ever changing list of values by PID (process id) which gives me no detail of the processes other than that they're httpd requests, and some of them are using upto 16% of the allocated RAM.
Do you guys ever test the server resources that your scripts use? If yes, how do you do it?
TIA,
Chris.