2 Replies Latest reply on Oct 25, 2011 12:59 PM by halfdomedog

    Error launching JBoss from Eclipse

    halfdomedog

      Hello,

      I am having trouble launching JBoss from Eclipse both as a server and in debug mode. I am able to start JBoss from the run.bat in the JBoss folder however. When I try to run my application, Eclipse give a pop-up that says "Starting JBoss v4.0 at localhost has encountered a problem. Server JBoss v4.0 at localhost failed to start v4.0". Trying to debug my application gives the following error. "Launching JBoss v4.0 at localhost has encountered a problem. Cannot connect to VM" The output from the Console is the same in both cases: "Error occurred during initialization of VM Too small initial heap". Any help will be greatly appreciated.

       

      Halfdomedog

        • 1. Re: Error launching JBoss from Eclipse
          wolfgangknauf

          Hi,

           

          which Eclipse version? Do you use the WebToolsPlatform plugin (part of e.g. the Eclipse edition "for JavaEE developers"), or do you use e.g. the JBoss Tools plugin?

           

          If you use the WebToolsPlatform plugin, then open the launch configuration of your server. Here you should see VM arguments. Check the memory settings.

          For me (JBoss 5.0), the are like this:

          "-Dprogram.name=run.bat -Xms128m -Xmx512m  -XX:MaxPermSize=256m"

          Maybe you have to increase them.

           

          Hope this helps

           

          Wolfgang

          • 2. Re: Error launching JBoss from Eclipse
            halfdomedog

            Wolfgang,

            I am using Eclipse Helios for Java J2EE. Yes, you are correct. I was missing the last character in "-Xms128m" that made all the difference.

             

            Thanks a bunch