Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within GNU/Linux
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
GNU/Linux
memory usage per process
Reda Mokrane
Ranch Hand
Posts: 237
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
how can I get memory usage per process in linux?
thanks
Ulf Dittmer
Rancher
Posts: 43081
77
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Do you mean manually of programmatically? The "top" command lists all processes with their real and virtual memory allocations. You could run that from within
Java
using Runtime.exec and parse its output for the values you're interested in.
Reda Mokrane
Ranch Hand
Posts: 237
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks.
I mean manually, I have 3 processes running and i want to find out the memory/cpu usage for each.
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
CPU usage and memory usage by processes
java constants
java memory usage on linux
instance in a for loop - right /wrong/doesn't matter ?
Memory Usage shown by Windows Task Manager and VM Telemetry view
More...