You are not logged in.

#1 2007-04-25 03:24:00

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Show process mem usage in bytes, not %. Show process network usage.

How can I see how much memory in B/KB/MB a process use? ps and top show %.

And, how can I see network usage for a process?

Orjanp...

Last edited by orjanp (2007-04-25 03:24:55)


Ørjan Pettersen

Offline

#2 2007-04-25 06:28:52

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: Show process mem usage in bytes, not %. Show process network usage.

About your 1st question, try to "man" ps.

ps -o pid,bsdstart,state,rss,args

there are other options that show virtual memory usages and some other memory informations.

Offline

#3 2007-04-25 08:55:45

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Show process mem usage in bytes, not %. Show process network usage.

exmap is a great tool of determining more accurate (than top and others) memory usage.

nethogs allows you to see per process network bandwidth usage.

Offline

#4 2007-04-25 12:57:45

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: Show process mem usage in bytes, not %. Show process network usage.

bsdson.tw wrote:

About your 1st question, try to "man" ps.

ps -o pid,bsdstart,state,rss,args

there are other options that show virtual memory usages and some other memory informations.

Thanks.
I have read thrugh the manpages to ps briefly, but I came out empty.

lucke wrote:

exmap is a great tool of determining more accurate (than top and others) memory usage.

nethogs allows you to see per process network bandwidth usage.

Shuld have specified my wish better. I need a standard builtin tool to do this, beacause it's beeing called from a python script.

But thanks. Both tools will be installed to be used in general.

Oerjan...


Ørjan Pettersen

Offline

Board footer

Powered by FluxBB