Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-10-29
2
Medium Priority
?
582 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
What You Need to Know when Searching for a Webhost Provider
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.:
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.
Suggested Courses

636 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