?
Solved

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

Posted on 2013-10-29
2
Medium Priority
?
578 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
What You Need to Know when Searching for a Webhost Provider
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…
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.:
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 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