Your server start to use swap, that's why you get high load.
your PHP opcode cache size is a bit high to me, since eaccelerator uses /dev/shm, there is no need to set opcode cache too high.
Also, make sure the /dev/shm got cleaned regularly.
PHP opcode cache means.... eaccelerator.shm_size?
Mine is just use the default 16 mb.
So I must to reduce that size again?
Yes I remember you have told me to empty it around every 5 minutes...
Btw I regularly clean my /dev/shm/eaccelerator with hourly cron job.
Is that too long?
16mb should be fine. you need to find out which process responsible for the swap usage.
monitor the usage of /dev/shm with command "df", I think it should be cleaned more frequently.
your PHP processes is constantly allocate more than 200MB memory, you need to find out what causes it doing that. Maybe other opcode cache or loader, should reduce the memory usage.
16mb should be fine. you need to find out which process responsible for the swap usage.
monitor the usage of /dev/shm with command "df", I think it should be cleaned more frequently.
Yes it has loaded very fast (it was cleaned up at 5 minutes ago)....
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 4090756 3926160 164596 96% /dev/shm
I will change my cron job to clean it more frequently.
Is that save to move the eaccelerator.shm_dir to another disk? (that disk is just filled for /home1 only)
Btw.... how to find out which proccess that mostly filled up that cache dir?
Quote:
Originally Posted by mistwang
your PHP processes is constantly allocate more than 200MB memory, you need to find out what causes it doing that. Maybe other opcode cache or loader, should reduce the memory usage.
I am using eAccelerator only as opcode.
The loaders are zend and ioncube.
There were 2-3 sites which are use ioncube.