JBoss Community

java heap space

created by Steve Jagels in Beginner's Corner - View the full discussion

I've been using eclipse 5.5.1, but I recently went to a new machine and I've been asked to go to MyEclipse 10.5.  Code that was running fine in 5.5.1 is now getting a java heap space error in 10.5.  The 10.5 eclipse.ini file has:

 

#utf8 (do not remove)

#utf8 (do not remove)

-startup

../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

--launcher.library

../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650

-install

C:\Java\MyEclipse10.5\MyEclipse 10

-vm

C:\Java\MyEclipse10.5\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe

-configuration

C:\Java\MyEclipse10.5\MyEclipse 10\configuration

-vmargs

-Xmx512m

-XX:MaxPermSize=256m

-XX:ReservedCodeCacheSize=64m

-Dosgi.nls.warnings=ignore

 

So I decided to bump up some of the numbers:

 

-Xms1024m

-Xmx2048m

 

But I still get the java heap space.  And I've tried upping the MaxPermSize and ReservedCodeCacheSize and those do not fix anything.

 

When I remove the sql driver file from the jboss lib directory, I no longer get the java heap space error, but of course then I get a different error because it does not find any driver file.

 

So any ideas for this?

 

I'm using jboss 4.0.4 and jdk 1.5.0.17.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community