4 Replies Latest reply on Jul 24, 2012 1:35 PM by Steve Jagels

    java heap space

    Steve Jagels Newbie

      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)






      C:\Java\MyEclipse10.5\MyEclipse 10




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







      So I decided to bump up some of the numbers:





      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. Re: java heap space
          Peter Johnson Master

          Sounds like you increased the heap size for MyEclipse. Are you sure that it was MyEclipse, and not JBoss AS, that was running out of heap space? (Each runs in its own JVM, so each has its own heap settings.)

          • 2. Re: java heap space
            Steve Jagels Newbie

            I don't see any .ini file for jboss.  How would I increase the heap space for jboss?

            • 3. Re: java heap space
              Peter Johnson Master

              That all depends on how MyEclipse starts JBoss AS. If you are running JBoss AS manually from a command line (not using MyEclipse or any other IDE), you can edit the jboss-home/run/run.conf (or run.conf.bat) file. I don't use MyEclipse, but if is somewhat close to Eclipse, then in the Servers View, double-clcik the Jboss AS server and then click the Open Launch Config link. The config dilao shows, you can set the heap size on the Arguments tab.

              • 4. Re: java heap space
                Steve Jagels Newbie

                I have added to the argments tab like you said.  Now it seems to be more hit-or-miss with the java heap space messages.  It sometimes shows the error message in the console.  But it doesn't seem to cause a problem for the browser unless I close out the browser and go into one of the apps in a new browser.