Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support How to monitor a process memory utilization? Post 302379234 by prasperl on Thursday 10th of December 2009 02:03:53 AM
Old 12-10-2009
Try top

TOP should be giving the results you expecting.For such memory leak cases I use TOP Only.Jus try TOP -n 50 or 100 | grep <pid>.


If your are debugging a C++ application,put your application under dbx and this method should definitely work.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Memory and CPU utilization process

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

2. UNIX for Dummies Questions & Answers

Getting CPU utilization and memory for a process

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

3. 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

4. UNIX for Dummies Questions & Answers

Monitor Memory of a process

Hi, I need to monitor the memory usage of a particular process continuously. As of now I am using the following command: ps -fu <user name> -o pid,comm,vsz | grep <process_name> | grep -v grep The output of this command gives me what i need except i want the output to keep getting updated... (3 Replies)
Discussion started by: archana485
3 Replies

5. SuSE

How to check Memory Utilization by each process

If following is the usage of cat /proc/meminfo MemTotal: 4051304 kB MemFree: 28544 kB Buffers: 216848 kB Cached: 3398628 kB SwapCached: 0 kB Active: 455460 kB Inactive: 3291612 kB HighTotal: 0 kB HighFree: 0 kB... (5 Replies)
Discussion started by: bryanabhay
5 Replies

6. UNIX for Dummies Questions & Answers

Get CPU,Memory utilization by process id

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

Get CPU,Memory utilization by process id

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. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

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

9. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

10. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies
MacPerl(3)						User Contributed Perl Documentation						MacPerl(3)

NAME
MacPerl - Built-in Macintosh specific routines. SYNOPSIS
$phone = MacPerl::Ask("Enter your phone number:"); MacPerl::Answer("Nunc et in hora mortis nostrae", "Amen"); $color = MacPerl::Pick("What's your favorite color baby ?", "Red", "Green", "Gold"); MacPerl::SetFileInfo("MPS ", "TEXT", yin, yang); MacPerl::GetFileInfo(yin); MacPerl::Quit(kMacPerlAlwaysQuit); FUNCTIONS
MacPerl::Answer(PROMPT) MacPerl::Answer(PROMPT,BUTTON1) MacPerl::Answer(PROMPT,BUTTON1,BUTTON2) MacPerl::Answer(PROMPT,BUTTON1,BUTTON2,BUTTON3) Presents to the user a dialog with 1, 2, or 3 buttons. Examples: MacPerl::Answer("Nunc et in hora mortis nostrae", "Amen"); always returns 0. MacPerl::Answer("I refuse"); is equivalent to "MacPerl'Answer("I refuse", "OK");" MacPerl::Answer("Delete hard disk ?", "OK", "Cancel"); returns 1 for OK, 0 for Cancel MacPerl::Answer("Overwrite existig file", "Overwrite", "Skip", "Cancel"); returns 2 for Overwrite, 1 for Skip, 0 for Cancel MacPerl::Ask(PROMPT, DEFAULT) MacPerl::Ask(PROMPT) Asks the user for a string. A default value may be given. Returns undef if the dialog is cancelled. Example: $phone = MacPerl::Ask("Enter your phone number:"); $name = MacPerl::Ask("Enter your first name", "Bruce"); Useful for Australian database applications MacPerl::Pick(PROMPT, VALUES) Asks the user to pick a choice from a list. VALUES is a list of choices. Returns undef if the dialog is cancelled. Examples: $color = MacPerl::Pick("What's your favorite color baby ?", "Red", "Green", "Gold"); MacPerl::SetFileInfo(CREATOR,TYPE,FILE...) Changes the file types and creators of the file(s). Examples: MacPerl::SetFileInfo("MPS ", "TEXT", yin, yang); Turn yin and yang into MPW text files MacPerl::GetFileInfo(FILE) In scalar context, returns the file type. In array context, returns (creator,type). Examples: MacPerl::GetFileInfo(yin); Returns "TEXT" or ("MPS ", "TEXT"). MacPerl::DoAppleScript(SCRIPT) Execute an AppleScript script. Returns the text of the script result. Script error strings are returned in $@. Example: my $text = MacPerl::DoAppleScript(<<END_SCRIPT) or die $@; tell application "BBEdit" make new Window copy "Inserting text the hard way." to character 1 of front Window get (characters 1 through 9 of front Window) as text end tell END_SCRIPT Note: calling DoAppleScript to tell MacPerl to do something via AppleScript may yield unpredictable results, especially when waiting on MacPerl to reply, such as when stringing multiple events together, or expecting data to be returned. Try wrapping the "tell" block in "ignoring application responses" / "end ignoring" if necessary. MacPerl::Reply(ANSWER) Reply to current DoScript request. Useful if you are calling Perl scripts from other applications. MacPerl::Quit(LEVEL) Mac OS only. If LEVEL is 0, don't quit after ending the script. If 1, quit if running under a runtime version, if 2, always quit. If LEVEL is 3, quit if this was the first script to be run since starting MacPerl. MacPerl::LoadExternals(LIBFILE) Mac OS only. Load XCMD and XFCN extensions contained in file LIBFILE, which is searched along the same path as it would be for a require. The extensions are made accessible in the current package, unless they containing an explicit package name. MacPerl::FAccess(FILE, CMD, ARGS) Mac OS only. When called from the tool, manipulate various information of files. To get the command constants, it's convenient to require "FAccess.ph". $TAB = MacPerl::FAccess(FILE, F_GTABINFO) MacPerl::FAccess(FILE, F_STABINFO, TAB) Manipulate tabulator setting (in spaces per tab). ($FONTNAME, $FONTSIZE) = MacPerl::FAccess(FILE, F_GFONTINFO) $FONTNUM = MacPerl::FAccess(FILE, F_GFONTINFO) MacPerl::FAccess(FILE, F_SFONTINFO, FONT [, SIZE]) Manipulate font and size information. Both font names and font numbers are accepted for F_SFONTINFO; F_GFONTINFO returns a font name in an array context, a font number in a scalar context. ($STARTSEL, $ENDSEL, $DISPLAYTOP) = MacPerl::FAccess(FILE, F_GSELINFO) $STARTSEL = MacPerl::FAccess(FILE, F_GSELINFO) MacPerl::FAccess(FILE, F_SSELINFO, $STARTSEL, $ENDSEL [, $DISPLAYTOP]) Manipulate the MPW selection of a file. ($LEFT, $TOP, $RIGHT, $BOTTOM) = MacPerl::FAccess(FILE, F_GWININFO) =item $TOP = MacPerl::FAccess(FILE, F_GWININFO) =item MacPerl::FAccess(FILE, F_SWININFO, LEFT, TOP [, RIGHT, BOTTOM]) Manipulate the window position. MacPerl::MakeFSSpec(PATH) This command encodes a path name into an encoding (volume #, directory #, File name) which is guaranteed to be unique for every file. Don't store this encoding between runs of MacPerl! MacPerl::MakePath(FSSPEC) The inverse of MacPerl::MakeFSSpec(): turn an encoding into a path name. MacPerl::Volumes() In scalar context, return the FSSPEC of the startup volume. In list context, return FSSPECs of all volumes. SEE ALSO
macperl perl v5.18.2 2009-09-07 MacPerl(3)
All times are GMT -4. The time now is 10:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy