简体   繁体   中英

Java desktop app fails to run if max heap size set to >1G on Windows 7 64-bit despite having latest 64-bit Jre

I am trying to run this Java desktop application on a 64-bit Windows 7 machine with 32G RAM. It runs fine when the jnlp file sets: max-heap-size="1024m", but if the max heap size is increased to 2048 or 4096 the Java start animation runs for a few seconds and a new process is visible in task manager then it just stops with no error message.

在此处输入图片说明

I have tried updating my Jre to the latest 64-bit version. "java -version" gives: 在此处输入图片说明

I've also configured the Java start parameters to -Xmx4096m, but this does not fix it: 在此处输入图片说明

Very grateful for any suggestions - I run analyses using this tool and the extra RAM could save me a great deal of time.

Okay, I fixed this myself, though it turned out to be something I should have checked properly from the beginning. My system had a second Jre installed - the 32-bit version. After uninstalling this, the Java app was able to load with a higher max heap size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM