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??
Thomas Kellerer - 26 Dec 2006 18:49 GMT
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:
> Hello Everybody
> I am trying to compile pretty big project using NM 5.5 - SDK 1.4
[quoted text clipped - 27 lines]
>
> What am i doing wrong here??