Solved

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

Posted on 2013-10-29
2
557 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Who is Runnig my Bash Shell Script 4 64
DNS @ Naked Domain Record 5 69
app server have enough resources... 2 24
VMware Workstation 12 Player 16 41
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 …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

895 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

14 Experts available now in Live!

Get 1:1 Help Now