Skip to main content

"Could not create the Java virtual machine." when max-heap-size is > 926Mb

2 replies [Last post]
anandb4ever
Offline
Joined: 2010-07-19

We received "Could not create the Java virtual machine." when the max-heap-size provided exceeded 926 Mb in XP PC. We found the below mentioned link which confirms that this is a bug

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6945136

But the problem is that the issue does not get recreated in all the XP PCs. Increasing the max heap size to greater than 926 works fine in some XP PCs.
Could there be any configuration related issues for this problem...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
peter__lawrey
Offline
Joined: 2005-11-01

Java requires that there be continous memory to allocate. This is a known issue in 32-bit OSes. Depending on what other programs are running or have run, the memory can be fragemented. You may find that rebooting helps.

Obviously, using a 64-bit OS will resolve this issue.

anandb4ever
Offline
Joined: 2010-07-19

Thanks for the reply... Could this be only a OS related problem... Because the issue occurs only in some 32 bit OS PCs