Java webstart max-heap-size causes JVM cannot be started -


We use Java Webstart on a client side for a Java swing based application. Recently we are experiencing a strange "Java virtual machine can not start" error while clicking on the jnlp link.

We can detect this soon because the maximum-size-size installation in JNLP file was set to 1024m, while most subscriber PCs have only 1 GB of physical memory. To resolve the problem, set the maximum-hap-size back up to 512 meters. Currently, the relevant line of the jnlp file appears

  & lt; J2se version = "1.5+" initial-hap-size = "100 m" max-hap-size = "512 m" />  

I looked in jnlp space, but nothing related to the "Java Virtual Machine" issue can not be found. In principle Max-Hep-shaped should not be the initial-hep-size

Windows XP SP2 (32 bit), Internet Explorer 8.06, Memory 1G Note Max-Hap-Size 1024mm The same problem on the machine with 2G RAM

Actually, what I see here is some context / imagination / experience why this is happening, and if Apart from raising the physical memory size, there is no cure for this issue.

Another thing is that if we leave the maximum-hex-size unspecified, will the actual physical memory size be used as a maximum-hep-size, or the use of system-default Will be done?

Thank you, Jason

It seems that this problem arises from this fact That enough large storage area could not be allocated in your JVM. For reasons of implementation, the Java object heap should be allocated to the nearest virtual addresses.

I have noticed that on a Win XP box with 2 GB RAM it breaks down to about 1.5 GB (this closed course is different depending on different processes, so running on every PC Is, therefore, YMMV).

Check the following post for some explanation:


Comments