Solved

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

Posted on 2013-10-29
2
564 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
ID: 39610381
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
ID: 39721857
I found out, that the Backup-Job sometimes made a high cpu-usage while using gzip...
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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 …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

679 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