07-23-2019
Top 5 cpu and Mem consuming process and files and suggestion for health check
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but surprisingly didn't find any.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically.
Please kindly refer me to URL which teach how to write this kind of script, or service.
Thanks. (1 Reply)
Discussion started by: dragondad
1 Replies
2. 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
3. AIX
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
4. Shell Programming and Scripting
Hello,
I have to create shell script being myself real novice in scripting...
I was looking on the Internet for some script examples, but I don't have the basic understanding of the shell. I was trying to do something with “ps” command without success.
For exemple total number of... (2 Replies)
Discussion started by: mr_awd
2 Replies
5. Shell Programming and Scripting
HI,
When i use the top command in Linux I get the below values.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
What is the maximum MEM% that will occur. I got once 303% . Is it possible to get such a high value.
Regards,
Ahamed. (2 Replies)
Discussion started by: ahamed
2 Replies
6. Shell Programming and Scripting
I m using following command to find top 10 cpu consuming processes.
However whenever i execute the command i get
following warning.
What can be done to avoid it?
# ps -auxf | sort -nr -k 3 | head -10
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root ... (6 Replies)
Discussion started by: pinga123
6 Replies
7. Shell Programming and Scripting
When I run 'top' command,I see the following
Memory: 32G real, 12G free, 96G swap free
Though it shows as 12G free,I am not able to account for processes that consume the rest 20G.
In my understanding some process should be consuming atleast 15-16 G but I am not able to find them.
Is... (1 Reply)
Discussion started by: prasperl
1 Replies
8. Emergency UNIX and Linux Support
Can the %MEM value for a process show more than 100% in top output?Is this ever possible? (5 Replies)
Discussion started by: proactiveaditya
5 Replies
9. Solaris
Hi,
When I run the free command on solaris, I get the following:
"Memory: 60G phys mem, 69G free mem"
Q: how cna the free mem be higher then the physical mem?:confused:
Amit (3 Replies)
Discussion started by: amitlib
3 Replies
10. UNIX for Beginners Questions & Answers
I have two files to be compared to get the output of the differences.
File1 has a lot more lists than File2.
After searching a lot on this thread I'am unable to find the exact code that im willing to get.
This will be used as 'pre-check'/post-check utility (health check Tool) to compare... (1 Reply)
Discussion started by: GeekyJimmy
1 Replies
LEARN ABOUT DEBIAN
squid-prefetch
UNDOCUMENTED(7) Linux Programmer's Manual UNDOCUMENTED(7)
NAME
undocumented - No manpage for this program, utility or function.
DESCRIPTION
This program, utility or function does not have a useful manpage. Before opening a bug to report this, please check with the Debian Bug
Tracking System (BTS) at <http://bugs.debian.org/> if a bug has already been reported. If not, you can submit a wishlist bug if you want.
If you are a competent and accurate writer and are willing to spend the time reading the source code and writing good manpages please write
a better man page than this one. Please contact the package maintainer and copy man-pages@qa.debian.org in order to avoid several people
working on the same manpage.
Even if you are not an accurate writer, your input may be helpful. Writing manual pages is quite easy, the format is described in man(7).
The most important and time-consuming task is to collect the information to be put in the new manpage.
DIAGNOSTICS
It is possible that the man page for the command you specified is installed and that your manual page index caches are out of sync. You
should try running mandb(8).
Try the following options if you want more information:
foo --help, foo -h, foo -?
info foo
whatis foo, apropos foo
dpkg --listfiles foo, dpkg --search foo
locate '*foo*'
find / -name '*foo*'
Additionally, check the directories /usr/share/doc/foo, /usr/lib/foo.
The documentation might be in a package starting with the same name as the package the software belongs to, but ending with -doc or -docs.
If you still didn't find the information you are looking for you might consider posting a call for help to debian-user@lists.debian.org.
SEE ALSO
info(1), whatis(1), apropos(1), dpkg(8), locate(1), find(1), updatedb(1), undocumented(3), man(7), mandb(8), missing(7).
Debian GNU/Linux August 24th, 2003 UNDOCUMENTED(7)