The day before yesterday, the site has become very slow to run the situation even many requests are suspended, the remote link interface is a card one card. Open Explorer A look at the original CPU occupies 100%, where Memcache.exe consumes more than 80% CPU. When the Memcache service was restarted, the CPU was instantly down.
But in the afternoon began to appear this situation, after surfing the internet to find this situation is generally memcache memory size, combined with the site to see, the original really is with the increase of the site data caused by the original allocated memory is not enough.
Here's how to fix it:
First, the Win+r key opens to run, input regedit enter the registry:
Found: hkey_local_machine\system\currentcontrolset\services\memcached Server, modifying the value of the ImagePath key
The default configuration is D:\memcached\memcached.exe "(My Memcached.exe file is under D:\memcached\)-D Runservice
After the value, add-m the memory size you want to allocate (for example:-M 1024 is memory 1024M)
Modifying results D:\memcached\memcached.exe "-D runservice-m 1024
Click "OK" to save
Then continue win+r open Run, enter services.msc enter service
Locate the Memcached server restart service
And look at the CPU usage of Memcache in Server Task Manager has been reduced
Is this morning running condition:
Memcache running high CPU