By Dimec
Please look at this graph:
24 hours: http://i.imgur.com/YnkbQFP.png
7 days: http://i.imgur.com/9l5KeIk.png
As you can see, there are strange unexpected Sys CPU and Disk write usage spikes at random time. There is no special cron jobs. I also remember that some times there was “/usr/bin/python3 /usr/lib/ubuntu-release-upgrader…” process in top of the top command.
During this spikes i have to reboot server, this helps. And now, after reboot, i get
Could not load list of meta packages: [Errno 12] Cannot allocate memory twice in places, there must be information about pacakges to upgrade.
I have 1024 mb server and same swap file:
total used free shared buffers cached
Mem: 994 837 156 16 8 167
-/+ buffers/cache: 661 332
Swap: 1023 17 1006
How can i find out the problem of this system load spikes? Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In order to diagnose the issue, we’d really need to know more about your server.
Please provide:
uname -a and post the output – feel free to comment out the hostname.top, press shift+m and finally, press c. Take a screenshot and post the URI.–
What this will provide us with is, first and foremost, a look at what all you’re running (by looking at the package list), the top processes consuming the most RAM & CPU, and some basic OS information.
From looking at the output of free -m, of your 1GB, you’re physically using 670MB (the used column includes cache, so for actual usage you’d subtract the cache column from usage) and have 156MB free, so something is definitely using the RAM, but your SWAP looks fine (you’re not tearing through RAM, forcing SWAP usage which would almost immediately begin to affect CPU load).
That said, it is possible that you’re running out of RAM from time to time, which would force SWAP usage to prevent a crash (whether it’s MySQL, NGINX or something else). Once you begin to use swap, which spurs disk activity, you begin to utilize more CPU as disk (regardless of whether it’s an SSD, SATA, SCSI/SAS or Flash drive) is always going to be slower than RAM and accessing it will also always be more “expensive” in terms of CPU “cost.”
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.