> , I can see the new process in the "Processes" tab of
> the Windows Task Manager, and it never exceeds ~80MB,
even after running for a
> little while.
I wouldn't put too much stock in that figure if I was you:
it's never
seemed to be even remotely representative of reality to me.
If you add in
the VM column to that display, that seems to more accurately
reflect what
one would expect to see here. Also, if you flick to the
Performance tab,
and look at the PF Usage figure, you'll see your RAM being
allocated there.
I'm not sure why it is always reflected as being allocated to
the paging
file, because - obviously - that's not so good (running of
disk instead of
actually in RAM). I suppose possibly because it's such a big
chunk of RAM
to be allocated all at once? I've long since given up trying
to work out
what Windows does with the RAM one gives it.
A more accurate measure of what RAM the JVM has to play with
is to ask it.
Have a look at the memory-oriented methods of
java.lang.Runtime:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
--
Adam