LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2004, 03:45 AM   #1
guarriman
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
How to display how much memory resources consumes an app


Hi.

I would like to display ON THE SHELL how much memory resources consumes an app
(e.g. a script I'm running).

How can I perform it?

Regards.
 
Old 12-17-2004, 04:52 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Code:
cat /proc/pid/statm
where pid is the process ID of the command you're running (which you can get from top or ps).

The fields are, left-to-right:

size total program size
resident size of memory portions
shared number of pages that are shared
trs number of pages that are 'code'
drs number of pages of data/stack
lrs number of pages of library
dt number of dirty pages
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get it known what processor and memory resources using by the concrete process ukrainet Linux - Newbie 3 12-20-2004 06:41 AM
What resources would I need to convert a win app to run in linux - not wine redbeansnrice Programming 2 08-14-2004 08:25 PM
Memory maxing out on minimal app load stealthdave Mandriva 1 10-01-2003 12:14 AM
What Happened to Freeing up my Memory/Resources? johan the olive Linux - Hardware 2 02-27-2003 02:14 PM
How much Linux consumes memory? Eits0 Linux - General 5 09-02-2002 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration