Some modules do not work in JWS Application

I have developed a swing application and run from Java Web Start. When my application read the data from database and export into XML file, it works fine if the data amount is less than 5000 KB. But the program stop working if the data amount is larger than 5000 KB. Then I run the application with java -jar command line, it works well whether data amount is small or large. Is there any heap memory issue in Java Web Start? I have set max-heap-size to 512M in JNLP file. I would appreciate if anyone gave me any idea and solution about my problem.

[556 byte] By [g4029672a] at [2007-11-26 17:40:25]
# 1
You are talking about memory issues but you never mentioned you were getting an out of memory error.What is causing the application to stop? What error are you getting?
zadoka at 2007-7-9 0:08:35 > top of Java-index,Desktop,Deploying...
# 2
Yes, I got the out of memory message.java.lang.OutOfMemoryErrorSystem Halt
g4029672a at 2007-7-9 0:08:35 > top of Java-index,Desktop,Deploying...
# 3
Running Jar or Exe file alone didn't give any error. Out of Memory error only occured in running with JWS.
g4029672a at 2007-7-9 0:08:35 > top of Java-index,Desktop,Deploying...