11-27-2015
Quote:
Originally Posted by
coolatt
hello all,
on linux servers sometimes any of these resources (cpu,memory,disk) get a spike when you are not in front of the server.
the duration of these spikes might be 5 mins or even whole weekend.
my question is there a good way of capturing the events that caused these issues ( cpu or memory) that can later be used to investigate and find a solution.
p.s am not talking about monitoring tools like caccti,nagios etc.
thanks
If this is only a problem when you are not in front of the server, you can either always stand in front of the server or you can tell us what you do while standing in front of the server that keeps the spikes from happening or being a problem. Then maybe we can help you write a script that would do what you do while standing in front of the server that keeps it from being a problem (even when you're not standing there).
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
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
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
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
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
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
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
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
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
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
sa(8) System Manager's Manual sa(8)
Name
sa, accton - print process accounting statistics
Syntax
/etc/sa [ options ] [ file ]
/etc/accton [ file ]
Arguments
file With an argument naming an existing file, causes system accounting information for every process executed to be placed at the end
of the file. If no argument is given, accounting is turned off.
Description
The command reports on, cleans up, and generally maintains accounting files.
The is able to condense the information in into a summary file which contains a count of the number of times each command was called and
the time resources consumed. This condensation is desirable because on a large system can grow by 100 blocks per day. The summary file is
normally read before the accounting file, so the reports include all available information.
If a file name is given as the last argument, that file will be treated as the accounting file. The file is the default.
Output fields are labeled: "cpu" for the sum of user+system time (in cpu seconds), "re" for real time (also in cpu seconds), "k" for cpu-
time averaged core usage (in 1k units), "avio" for average number of I/O operations per execution. With options fields labeled "tio" for
total I/O operations, "k*sec" for cpu storage integral (kilo-core seconds), "u" and "s" for user and system cpu time alone (both in cpu
seconds) will sometimes appear.
Options
-a List all command names including those containing unprintable characters and those used only once. By default, places all command
names containing unprintable characters and those used only once under the name `***other.'
-b Sort output by sum of user and system time divided by number of calls. Default sort is by sum of user and system times.
-c Besides total user, system, and real time for each command, print percentage of total time over all commands.
-d Sort by average number of disk I/O operations.
-D Print and sort by total number of disk I/O operations.
-f Force no interactive threshold compression with option.
-i Do not read in summary file.
-j Instead of total minutes for each category, give seconds per call.
-k Sort by cpu-time average memory usage.
-K Print and sort by cpu-storage integral.
-l Separate system and user time; normally they are combined.
-m Print number of processes and number of CPU minutes for each user.
-n Sort by number of calls.
-r Reverse order of sort.
-s Merge accounting file into summary file when done.
-t For each command, report ratio of real time to the sum of user and system times. If the sum of user and system times is too small
to report, `*ignore*' appears in this field.
-u Superseding all other flags, print for each command in the accounting file the user ID and command name.
-v Followed by a number n, types the name of each command used n times or fewer. Await a reply from the terminal; if it begins with
`y', add the command to the category `**junk**.' This is used to strip out garbage.
Restrictions
Accounting is suspended when there is less than 2% free space on disk. Accounting resumes when free space rises above 4%.
Files
Raw accounting
Summary
Per-user summary
See Also
acct(2), ac(8)
sa(8)