This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197593 - Jvm creation failed message very often
Summary: Jvm creation failed message very often
Status: RESOLVED DUPLICATE of bug 183941
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-04-09 23:48 UTC by NullPointer
Modified: 2011-06-01 16:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NullPointer 2011-04-09 23:48:43 UTC
I've installed new NB version, but it don't run. It show a message box with "Jvm creation failed" message.
It don't happen every run. Sometimes it runs and works without problems. But 3 times from 4 it shows error.
If I run netbeans.exe from console the output is:
"
The launcher has determined that the parent process has a console and will reuse
 it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.
Error occurred during initialization of VM
Could not reserve enough space for object heap
"
My netbeans options:
netbeans_default_options="--locale en_US -J-client -J-Xss2m -J-Xms128m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true "
I've changed Xmx to 256m and now it start without errors.
What's wrong with Xmx512m? There is 4Gb of RAM on my PC and it has a lot of free memory.
I had the same problem a couple months ago with NB7beta on another PC with windowsXP. The same error periodically.

NetBeans IDE 7.0 RC2 (Build 201104070802)
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
Comment 1 Tomas Danek 2011-04-11 13:07:49 UTC
hello, could you please take a look at issue 195114 - the problem might not be in Xmx value, but in MaxPermSize=384m.
Comment 2 NullPointer 2011-04-11 20:10:57 UTC
I've mess with netbeans.conf a little more.
With Xmx512m and MaxPermSize=384m it fails about 90% of times.
With Xmx512m and MaxPermSize=200m it about 50/50.
Xmx512m and MaxPermSize=128m it starts without problems.
Xmx256m and MaxPermSize=384m there are no problems.
Xmx384 and MaxPermSize=256m works good too.
Comment 3 Antonin Nebuzelsky 2011-04-12 11:31:18 UTC
32-bit Java, 32-bit Windows 7?
Comment 4 NullPointer 2011-04-12 11:33:12 UTC
(In reply to comment #3)
> 32-bit Java, 32-bit Windows 7?

yes
Comment 5 Nox 2011-05-24 07:04:19 UTC
I have the same thing on Windows7x64 32b Java. Happens every time, it just won't run

!
What I found out is that the moment I delete cache\splash.png, it suceeds in running... maybe it'll help
Comment 6 Antonin Nebuzelsky 2011-06-01 16:31:39 UTC

*** This bug has been marked as a duplicate of bug 183941 ***