Hi,
I'm working on big Java swing application developed in JDK 1.6 and it requires 1400 MB (-Xmx1400MB) as max heap size and its working fine on windows 7 - 32 bit OS.
We have tested the same on windows 10 - 64 bit OS with -Xmx1400M option on JRE 1.6 (client) and its failing to launch java application. It throws an error
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine
I have tried the below options but its not working on windows 10 64 bit OS.
a. Written small code to clear heap by calling GC.
b. Analysed Heap Dump using Jhat tool
c. -XX:UseSerialGC to collect GC
d. disable caching mechanism on windows 10 services (Prefetch & superfetch)
I tried to reboot the machine but issue is still exists.
I know that JVM is not able to allocate contiguous memory space upto 1400MB. I don't know how to resolve this issue. Help Me
NOTE :
i) Our application requires 1400 MB to load big experiments. So we can not reduce the heap size.
ii) We are loading 32-bit native dlls from our Java application.so we can't move to x64 JRE.
Kindly help me to solve this issue.
Thanks,
Raj Kumar