JVM runs out of memory

I use jre1.5.0_06. After open a project, my application will have no responses for out of memory. I make the installation with InstallAnywhere 6.0. I don't know how to set JVM memory options such as -Xms512m -Xmx1024m.

I have 4 questions about it.

1. JVM runs out of memory, I have 1500MB free memory. Why?

2. After I open the project file, there will be 17MB used. And after I close the project, 18MB memory will be used! Why increases?

3. After closing the project file, I want to do GC right now. But the used memory is not freed. Why.

4. I minimize the application window and then restore it. The used memory will be 7MB.

Please give me some clues. Thank you.

[709 byte] By [hballenchena] at [2007-11-27 11:57:44]
# 1

We noticed that JVM told out of heap memory after opening a very big project. It contained an XML file which was to build a tree and a property table. There are 25000 nodes in the built tree.

The XML file is loaded using jdom runing by an individual thread.

hballenchena at 2007-7-29 19:15:40 > top of Java-index,Desktop,Runtime Environment...