How can i learn reason of server load?

128 Views Asked by At

Nowadays i'm trying to change develop my system so i have been editing my files. But last 2-3 days my site gets more error(500) causing server load. How can i learn that reason of server load?

1

There are 1 best solutions below

0
On

For some reason you have run out of allocatable PHP memory.

PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 65536 bytes)

Either you have done something very odd to your code or what you are doing requires more memory to run properly.

Try this:

Edit your php.ini and change this parameter

memory_limit = 128M

yours may be set to 128Meg as thats the default, if it is try changing it to

memory_limit = 256M