Memcache running high CPU

Source: Internet
Author: User
Tags memcached cpu usage

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.