2

I am parsing a file which is around 600MB in size.

Below is memory usage when the file runs

1] When running from Netbeans with -Xms1g runtime JVM arguments it takes around 1.03GB memory (checked from Task Manager)

2] When I directly ran JAR it took maximum of 1.34GB (checked from Task Manager) and threw java outofmemory exception (I have set my JVM Runtime parameters with -Xms2048M also tried with -Xms1g)

3] When I run from cmd with JVM arguments -Xms1g it takes 1.03GB memory and gives the proper output.

Question : My JVM run time parameters are set to run on 2gb memory (tried 1gb too) why does it throw outofmemory even though it gives proper output when the memory is specifically given in the cmd command?

enter image description here

vtd-xml-author
  • 3,319
  • 4
  • 22
  • 30
Bhavik Patel
  • 1,044
  • 1
  • 15
  • 33

1 Answers1

0

It doesnt' appear that this is vtd-xml related issue... you can probably use JProbe to do a heap analysis to determine the cause of memory issue...

vtd-xml-author
  • 3,319
  • 4
  • 22
  • 30