Sponsored Content
Operating Systems Linux Fedora Piping output of "top" to a text file Post 302089803 by BOFH on Wednesday 20th of September 2006 09:50:17 PM
Old 09-20-2006
Quote:
Originally Posted by sssow
Did you lookat pmap
pmap -x <PID>
I think that's fine if you're troubleshooting a memory issue, but it sounds like from his initial request, that he wanted something to keep an eye on. "Healthchecking" he said. I think the vmstat info would give good health checking information.

Carl
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies

2. UNIX for Dummies Questions & Answers

Process seen in "ps aux" but not "top"

Hi, I have a process that can be seen after "ps aux" command. However when I do "top" command. This process cannot be seen. How can this happen? Is there anything wrong with my code? (3 Replies)
Discussion started by: monkfan
3 Replies

3. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies

4. AIX

AIX 5.3 - Discrepancies between "top" and "vmstat"

Can someone explain the differences I'm seeing below in TOP and VMSTAT commands on my AIX 5.3 server? Thanks! CPUs: 4; load averages: 0.86, 0.97, 0.97 18:09:26 926 processes: 4 stopped, 922 running CPU states: 78.4% idle, 8.5% user, 12.6% kernel, 0.3% wait Memory: 23680M Total.... (1 Reply)
Discussion started by: troym72
1 Replies

5. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

6. Shell Programming and Scripting

Retrieve RAM memory size from "top" command output

Hi, I am trying to get the system RAM size from "top" command's output by the following but it is not working. top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Discussion started by: royalibrahim
10 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Homework & Coursework Questions

Need help creating shell script with output that has 2014 calendar and 2 text items from a"fortune"

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am required to create a bash shell script with either emacs or vi. It must include the year 2014 calendar on... (9 Replies)
Discussion started by: dandanhelpmeman
9 Replies

9. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
pmap(1) 						      General Commands Manual							   pmap(1)

NAME
pmap, pfiles - displays process address information and open file descriptors SYNOPSIS
options] pid1 [pid2...] pid1 [pid2...] DESCRIPTION
prints the address space information of a process. prints information about all open file descriptors of a process. If file descriptor corresponds to a file, then prints the fstat(2) and fcntl(2) information. If the file descriptor corresponds to a socket, then prints socket related info, such as the socket type, socket family, and protocol family. In the case of AF_INET and AF_INET6 family of sockets, information about the peer host is also printed. pmap Options The information printed by can be controlled by the option. The argument to can be a comma-separated set of arguments given below: Display the size data locked in memory for each mapped object. Display the map name. This field can contain the following data. if the object is mapped as if the object mapped is the stack segment of the process. The object mapped is the text segment of the program. The object mapped is the data segment of the program. The object is mapped from a file. If the file name cannot be resolved, then the inode number and the device ID of the file is displayed. Also see the sec- tion below. Other map names include: and Display the offset of each mapped object. Specify access permission for each mapped object. Display the resident size of each mapped object. Display the space ID of each mapped object. Display the swap allocated for each mapped object. Display the maximum size of a page that can be allocated for the object. Indicate the type of data managed by each mapped object. The values include, Shared code, with n indicating the number of processes sharing the mapped object. Private code. Shared data, with n indicating the number of processes sharing the mapped object. Private data. Display the virtual size of each mapped object. Since the name of the file can be of variable length, use the name argument as the last argument to the option to ensure proper indentation of other fields. If no option is specified, prints the following fields by default: and EXTERNAL INFLUENCES
Environment Variables If is not specified or is null, it defaults to (see lang(5)). EXAMPLES
This command prints the virtual address, the resident memory size, and the name of each object mapped for processes with process ID 100 and 200: This command prints information on open file descriptors of processes with process ID 100 and 200: WARNINGS
and depend on to resolve the file names. If the file name cannot be resolved, then these commands will only print the device ID and the inode number of the file. Users of must not rely on the exact field widths and spacing of its output, as these will vary depending on the system and the release of HP-UX. SEE ALSO
fuser(1), ps(1), vmstat(1). pmap(1)
All times are GMT -4. The time now is 04:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy