by loftar » Mon May 10, 2010 2:55 pm
The JVM tends to use about as much virtual memory as the size of its heap. I have no clue what the value reported by Windows' task manager really means, though, but you should be aware that even though it uses that much virtual memory, it is often so that comparatively little of it may have been allocated physical pages.
It is a bit weird that it uses quite that much, though, since I've specified in the JNLP file that the heap should only be 256 MB. I wouldn't be surprised if the JVM allocates more anyway if it finds that the system has more VM space available, however.
I cannot even leak any great amount of memory, truth be told. If I were to leak memory, the JVM would run out of heap space and throw an OutOfMemoryException anyway, so you'd notice mercilessly if that were what is happening. :)
"Object-oriented design is the roman numerals of computing." -- Rob Pike