LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2013, 04:07 AM   #1
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Rep: Reputation: Disabled
check loadaverage and process


Hi
output of "sar -q" shows load average would be up to 3~4 at 3:50~4:00 AM .
I want tool , script or solutions for check which processes make this loadaverage automatically!
Can you help me?
Thanks
 
Old 05-12-2013, 04:40 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
probably top -b will be suitable?
 
Old 05-12-2013, 05:32 AM   #3
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
I know top -b. but I want a solution that check load average and process when load is greater than 3. This problem occure when I am not on server for check it! I want to record process which make this load in a file as a log.

Thanks
 
Old 05-12-2013, 06:03 AM   #4
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
"oswatcher" is the best tool for that. these types of tool will resolve your problem it will give you the top,iostat,vmstat,etc which you can find which process make the cpu spike & when
 
Old 05-14-2013, 11:19 PM   #5
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pantdk View Post
"oswatcher" is the best tool for that. these types of tool will resolve your problem it will give you the top,iostat,vmstat,etc which you can find which process make the cpu spike & when
oswatcher isn't in debian repository. When I search this tools in google , shows Oracle os watcher! Is it?
 
Old 05-15-2013, 12:21 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You could choose a few from these links
http://www.tecmint.com/command-line-...ux-performance
http://www.cyberciti.biz/tips/top-li...ing-tools.html
http://collectl.sourceforge.net/

However, for a first cut, I'd go with 'top -b' ie batch mode and run it eg every 5 mins.
See also maybe lsof.

Frequently early in the morning is when backup processes are run.
See also monitoring scripts eg could be logwatch.
Maybe the locate indexing program is running.
Have a look in /etc/logrotate.d as well.

Have you checked ALL the crontab files; not just personal ones, but system ones as well?
 
Old 05-16-2013, 01:24 PM   #7
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
farazinux: yes it is a oracle tool & mainly used in Linux based system but if you go free one then script can do the best for your resolution, so as per the guru's give you all details for preparing the script u can used that one also
 
Old 07-13-2013, 09:10 AM   #8
anish2good
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
uptime - Tell how long the system has been running.

uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes

The mpstat command writes to standard output activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed. If no activity has been selected, then the default report is the CPU utilization report.


iostat - The iostat command is used for monitoring system input/output device
loading by observing the time the devices are active in relation to
their average transfer rates.

vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. The first report produced gives averages since the last reboot

free - display information about free and used memory on the system


ping : ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway


Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to check PID from file and check whether process is running or not rajkiran183 Linux - Newbie 5 10-19-2012 11:28 AM
check existing process ust Linux - Newbie 3 06-22-2012 02:29 AM
Check process ust Linux - Newbie 1 10-27-2011 08:58 PM
check process ust Linux - Software 5 03-05-2008 02:46 AM
Check the process sunhui Linux - Software 5 03-01-2006 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration