06-18-2007
Quote:
Originally Posted by
sysgate
Its a client machine and they are not permiting to install any new software...
Can we do this with some shell scripts... ??
I just need a alert need not limit the process from using the CPU... based on the alert we need to take necessarty action...
10 More Discussions You Might Find Interesting
1. AIX
Hi,
How can i find out the average cpu utilization of a particular long-running process in AIX? is there some command for this
Thanks (2 Replies)
Discussion started by: iam
2 Replies
2. Shell Programming and Scripting
Hi,
I need to check which process in linux is taking high memory and which process is taking high cpu usage.
Regards,
Bash (4 Replies)
Discussion started by: learnbash
4 Replies
3. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
4. UNIX for Dummies Questions & Answers
I am trying to get cpu util and memory occupied for a process. I use these (I am showing output also):
using top
----------
$ top p 25272 d 5
top - 01:52:17 up 2 days, 21:28, 2 users, load average: 0.02, 0.05, 0.06
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie... (5 Replies)
Discussion started by: radiatejava
5 Replies
5. AIX
Hi ,
we upgarded our AIX from 5.3 to 6.1 and upgraded our xlc compiler from ver 6.0 to 9.0 .
After this upgrade one of our pro*C program is utilizing around 20% of the CPU. Before upgarde its using only 0.2 %.
when i try to debug using the truss command i got the below error.
$... (6 Replies)
Discussion started by: mugunthanvh
6 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
We need to get the CPU% and Memory utilization of process by process id.
Is there any way to do get them ?
I tried few commands like top -p <PID> ,
but am getting error "Quitting top: pset <PID> doesn't exist"
also i tried with ps -eo option but am getting error "ps: illegal option --... (1 Reply)
Discussion started by: suresh_g
1 Replies
7. HP-UX
Hi ,
We need to get the CPU% and Memory utilization of process by process id.
Is there any way to do get them ?
I tried few commands like top -p <PID> ,
but am getting error "Quitting top: pset <PID> doesn't exist"
also i tried with ps -eo option but am getting error "ps: illegal option --... (5 Replies)
Discussion started by: suresh_g
5 Replies
8. HP-UX
I have an issue with one of the processes which is showing %cpu over 120% when i issue the top command. I am looking for a script that send me an email alert when it crosses the 90% thresholds.
Appreciate your help (1 Reply)
Discussion started by: chkaiban
1 Replies
9. Emergency UNIX and Linux Support
Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking.
G (4 Replies)
Discussion started by: ggayathri
4 Replies
10. Cybersecurity
We have a system with 4 Xeon Processors each with 10 cores, total 512 GB RAM and 10 TB Hard Drive.
we want to create multiple user accounts with different resource limitations as :
User 1: RAM : 50GB, PROCESSOR: 10 Cores , User folder in home directory of 10GB space.
User 2: RAM :... (5 Replies)
Discussion started by: vaibhavvsk
5 Replies
LEARN ABOUT MOJAVE
tap::parser::iterator::process
TAP::Parser::Iterator::Process(3pm) Perl Programmers Reference Guide TAP::Parser::Iterator::Process(3pm)
NAME
TAP::Parser::Iterator::Process - Iterator for process-based TAP sources
VERSION
Version 3.26
SYNOPSIS
use TAP::Parser::Iterator::Process;
my %args = (
command => ['python', 'setup.py', 'test'],
merge => 1,
setup => sub { ... },
teardown => sub { ... },
);
my $it = TAP::Parser::Iterator::Process->new(\%args);
my $line = $it->next;
DESCRIPTION
This is a simple iterator wrapper for executing external processes, used by TAP::Parser. Unless you're writing a plugin or subclassing,
you probably won't need to use this module directly.
METHODS
Class Methods
"new"
Create an iterator. Expects one argument containing a hashref of the form:
command => @command_to_execute
merge => $attempt_merge_stderr_and_stdout?
setup => $callback_to_setup_command
teardown => $callback_to_teardown_command
Tries to uses IPC::Open3 & IO::Select to communicate with the spawned process if they are available. Falls back onto "open()".
Instance Methods
"next"
Iterate through the process output, of course.
"next_raw"
Iterate raw input without applying any fixes for quirky input syntax.
"wait"
Get the wait status for this iterator's process.
"exit"
Get the exit status for this iterator's process.
"handle_unicode"
Upgrade the input stream to handle UTF8.
"get_select_handles"
Return a list of filehandles that may be used upstream in a select() call to signal that this Iterator is ready. Iterators that are not
handle based should return an empty list.
ATTRIBUTION
Originally ripped off from Test::Harness.
SEE ALSO
TAP::Object, TAP::Parser, TAP::Parser::Iterator,
perl v5.18.2 2014-01-06 TAP::Parser::Iterator::Process(3pm)