Sponsored Content
Top Forums Shell Programming and Scripting Kill top 5 memory uses process Post 302947804 by MadeInGermany on Monday 22nd of June 2015 12:39:15 PM
Old 06-22-2015
On my HP-UX, ps aux gives the same output as ps blabla and ps.

Quote:
Originally Posted by jlliagre
You best bet is rebooting the server. Randomly killing processes is not a sane approach.
On SuSE Linux this is built into the kernel; they call it OOM killer. I call it amok runner.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

2. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

3. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

4. Shell Programming and Scripting

Unix Script to find and kill a process with high memory utilization

Hi Unix Gurus i am somewhat new to unix scripting so need your help to create a script as below. # This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1 # minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies

5. AIX

Command to find TOP 5 Memory consuming process

HI All, Can anyone send me a command to find TOP 5 Memory consuming process. It would be lelpful if I get output something like below processname - pid - memory(in MB) - command I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)
Discussion started by: bce_groups
4 Replies

6. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

7. Shell Programming and Scripting

kill process from a file or directly with top

i have edited a script to kill an exact mysql process is causing the high load on the server, my problem is, kill dont kill it! script: #!/bin/sh top -n 1 -u mysql | grep mysqld | awk '{print $1}' > pid proc='cat pid' kill -9 $proc or i try with kill -9 `top -n 1 -u mysql | grep mysqld... (8 Replies)
Discussion started by: chandro
8 Replies

8. Shell Programming and Scripting

Cron job and shell script to kill a process if memory gets to high

Hello, I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this? Thanks in advance! - Ryan (19 Replies)
Discussion started by: prometheon123
19 Replies

9. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

10. Red Hat

How to find memory taken by a process using top command?

I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example: Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached PID USER ... (6 Replies)
Discussion started by: RHCE
6 Replies
CXXTESTGEN(1)							    User Manual 						     CXXTESTGEN(1)

NAME
cxxtestgen - Generates test source files for CxxTest SYNOPSIS
cxxtestgen [options] [-o output] <file> ... DESCRIPTION
This script parses the files provided and generates an output source file that can be build with traditional compiler to produce the test- runner executable. OPTIONS
-h --help Show help message and exit. --version Write the CxxTest version. -o NAME --output=NAME Write output to file NAME. -w WORLD --world=WORLD The label of the tests, used to name the XML results. --include=HEADER Include file HEADER in the test runner before other headers. --abort-on-fail Abort tests on failed asserts (like xUnit). --main=MAIN Specify an alternative name for the main() function. --headers=FILENAME Specify a filename that contains a list of header files that are processed to generate a test runner. --runner=CLASS Create a test runner that processes test events using the class CxxTest::CLASS. The currently available runners are: - ErrorPrinter This is the standard error printer, which formats its output to the standard output stream (std::cout). Same as --error-printer. - ParenPrinter Identical to ErrorPrinter except that it prints line numbers in parantheses. This is the way Visual Studio expects it. - StdioPrinter The same as ErrorPrinter except that it uses printf instead of std::cout. - XmlPrinter Print test results to an XML file. - XUnitPrinter This test listener generates output using both ErrorPrinter and XmlPrinter. Same as --xunit-printer. --gui=CLASS Create a GUI test runner that processes test events using the class CxxTest::CLASS. (deprecated) --error-printer Create a test runner using the ErrorPrinter class, and allow the use of the standard library. --xunit-printer Create a test runner using the XUnitPrinter class. --xunit-file=XUNIT-FILE The file to which the XML summary is written for test runners using the XUnitPrinter class. The default XML filename is TEST-<WORLD>.xml, where <WORLD> is the value of the --world option. (default: cxxtest) --have-std Use the standard library (even if not found in tests). --no-std Do not use standard library (even if found in tests). --have-eh Use exception handling (even if not found in tests). --no-eh Do not use exception handling (even if found in tests). --longlong=TYPE Use TYPE as for long long integers. The default is for 'no' long long integer type to be specified, which is consistent with the current C++ standard. --no-static-init Do not rely on static initialization in the test runner. --template=TEMPLATE Generate the test runner using file TEMPLATE to define a template. --root Write the main() function and global data for a test runner. --part Write the tester classes for a test runner. -f --fog-parser Use new FOG C++ parser (Python 2.7 is required). COPYRIGHT
Copyright (C) 2008 Sandia Corporation This software is distributed under the LGPL License v2.1 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. CxxTest generator version 4 2012-01-06 CXXTESTGEN(1)
All times are GMT -4. The time now is 01:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy