> how can i get heap memory of a windows process with C#? For example, I
> would like to see the value of the heap memory allocated for my
> "java.exe" process.
It is probably impossible to get a true mesaurement if Java heap,
becaus ethat is "java internals", but some quick experimentation
Process p = Process.GetProcessesByName("java");
produced a decent approximation on my system.
I will not guarantee that it will on your system, but you
could try it.