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.
Joined: Jul 25, 2001
I mean manually, I have 3 processes running and i want to find out the memory/cpu usage for each.