Netbeans 5.5 java.lang.OutOfMemoryError

E

evgchech

Hello Everybody
I am trying to compile pretty big project using NM 5.5 - SDK 1.4
During compilation the IDE throws Out of memory exception
I have edited the following file
( As explained in :
http://performance.netbeans.org/howto/jvmswitches/index.html )

C:\Program Files\netbeans-5.5\etc\netbeans.conf
-----------------------------------------------------------------------
netbeans_default_userdir="${HOME}/.netbeans/5.5"
netbeans_default_options="-J-Xms128m -J-Xmx512m -J-Xverify:none"
netbeans_jdkhome="C:\Java\jdk1.5.0_09"

And still the same exception:
-------------------------------------------
Compiling 2435 source files to
C:\Development\NMS-2.15.05-DLYC\NMS\build
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
BUILD FAILED (total time: 17 seconds)

P.S
------
I have 1 GB Ram on my system
The strange thing is that Javac fails after allocated 72 MB, in spite
of the fact the system has 400MB ram free.
I have also tried to execute the IDE from CLI using switches :
netbeans.exe -J-Xms32m -J-Xmx1024m

What am i doing wrong here??
 
T

Thomas Kellerer

Hello,

NetBans spawns a new process for compiling, which does not inherit the settings
from the JVM running the IDE.

In the Project Properties, under "Compiling" you can define additional
parameters for the call to javac. Remember that the memory options for javac are
slightly different than for java, so to pass the -Xmx parameter to javac you
need to specify that as -J-Xmx...

Thomas

evgchech wrote on 26.12.2006 16:36:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top