Solved

High CPU usage on linux webserver how to log the hungry process

Posted on 2013-10-29
2
553 Views
Last Modified: 2013-12-16
Hi,

from time to time our webserver is not able to react on http, pop, smtp... because of too high cpu usage for some seconds.
The monitoring of those services shows me that they are off for some seconds.

Is there any script existing, that logs hte outpout of the command "top" or something else, if the cpu-usage gets higher than a given value ?
Or do you have any idea how get to know what is wrong in those seconds ?

It a suse 11 system with normally 1-2 % cpu usage...

Thanks
0
Comment
Question by:loosain
2 Comments
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 500 total points
Comment Utility
from time to time
I can only give you some tips. Please provide more info.

You need to find a pattern:
1. Does this happen regularly, always at the same time, day of the week; so you can tell in advance
2. Does this last long, say several minutes
3. Can you trace this in the logs therefore?

This can for instance be a cron job, doing some heavy lifting (backups?) or a network interface shutdown/restart; eg. a driver issue; or the literal cleaning lady with her vacuum cleaner.
0
 

Author Closing Comment

by:loosain
Comment Utility
I found out, that the Backup-Job sometimes made a high cpu-usage while using gzip...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now