Sponsored Content
Top Forums UNIX for Advanced & Expert Users Identify cause of high resource usage Post 302961429 by Peasant on Sunday 29th of November 2015 05:11:37 AM
Old 11-29-2015
Tools like iostat, vmstat and alike offer to run in intervals.

iostat [options] 15 240 > /mypath/iostat_$(date "+%Y%m%d%H%M") will run iostat every 15 seconds 240 times, total of one hour, and write output into hourly files.

So if you put your script into cron to run every hour, you will have hourly report files with 15 seconds measure intervals.

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies

2. UNIX for Dummies Questions & Answers

newbie: way to learn more about server's resource usage

I have a dedicated server running centos. It is "slightly managed" meaning I get a little help if I desperately need it; otherwise on my own. Many of the programs on this server I've had to write myself (less than optimal code for sure). Others are commercial but some are renowned resource... (2 Replies)
Discussion started by: blakekr
2 Replies

3. UNIX for Dummies Questions & Answers

Process Resource Usage

Hi There, I'm trying to find a way to gather resource usage information (CPU, Memory & Virtual Memory) for a single process in a scripted way. I've looked at vmstat & top but I can't figure out how to use them to get the information for a single process. can any one help with this? ... (2 Replies)
Discussion started by: Murph
2 Replies

4. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies

5. UNIX for Advanced & Expert Users

identify the unix process performing high disk i/o reads and writes

Guys, Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'. can you help me in this? -Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies

6. UNIX for Dummies Questions & Answers

Mail/ftp/web servers, on VIRTUAL!! dedicated server. Also resource usage. Centos 5.

Hi. First of all, would 4 or 5 websites, 1 ftp server (when downloading by someone or a few persons or one, concretize) and one mail server (not many emails, just to sound official and have a nice, spam-free email for myself). Websites with not that many, but some, later more visitors, quite... (0 Replies)
Discussion started by: newn
0 Replies

7. AIX

Script to identify high CPU usage processes

Hi Guys, I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks. Harby. (6 Replies)
Discussion started by: arizah
6 Replies

8. UNIX for Advanced & Expert Users

Kernel usage is high

Hi all, I have a solaris box, and I would like to know if anyone has commands to check kernel usage's. Scenario: solaris box is having cpu 100 % issue. . I have used sar -u 10 5 it shows 35 % kernel usage. If you can guide with some docs that would be good.. waiting for... (1 Reply)
Discussion started by: SunSolars_admin
1 Replies

9. UNIX for Advanced & Expert Users

Identify high I/O procecess

Hello I am trying to identify what is consuming my I/O (looks 100% in glance). Howver on my system HP-UX 104 B.11.11 U 9000/800 The only option in iostat seems to be -t which is not very usefull iostat -p is not available. Please advice on how I should proceed. Thank you in advance. (3 Replies)
Discussion started by: drbiloukos
3 Replies

10. Infrastructure Monitoring

Recording / Monitoring Shell Script Resource Usage.

I need to record min and max resources for RAM, & CPU for each command's execution in a shell script. Maybe going in details I would also be interested to capture plots with resource usage i.e.start to end of individual command with respect to time in a shell script. Please share ideas. (0 Replies)
Discussion started by: vaibhavvsk
0 Replies
install::TempContent::Objects::mod_perl-2.0.9::docs::apiUseraContribinstall::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Resource(3)

NAME
Apache2::Resource - Limit resources used by httpd children Synopsis PerlModule Apache2::Resource # set child memory limit in megabytes # default is 64 Meg PerlSetEnv PERL_RLIMIT_DATA 32:48 # linux does not honor RLIMIT_DATA # RLIMIT_AS (address space) will work to limit the size of a process PerlSetEnv PERL_RLIMIT_AS 32:48 # set child cpu limit in seconds # default is 360 seconds PerlSetEnv PERL_RLIMIT_CPU 120 PerlChildInitHandler Apache2::Resource Description "Apache2::Resource" uses the "BSD::Resource" module, which uses the C function "setrlimit" to set limits on system resources such as memory and cpu usage. Any "RLIMIT" operation available to limit on your system can be set by defining that operation as an environment variable with a "PERL_" prefix. See your system "setrlimit" manpage for available resources which can be limited. The following limit values are in megabytes: "DATA", "RSS", "STACK", "FSIZE", "CORE", "MEMLOCK"; all others are treated as their natural unit. If the value of the variable is of the form "S:H", "S" is treated as the soft limit, and "H" is the hard limit. If it is just a single number, it is used for both soft and hard limits. Defaults To set reasonable defaults for all RLIMITs, add this to your httpd.conf: PerlSetEnv PERL_RLIMIT_DEFAULTS On PerlModule Apache2::Resource See Also BSD::Resource(3), setrlimit(2) Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Author Doug MacEachern perl v5.18.2 install::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Resource(3)
All times are GMT -4. The time now is 08:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy