8 Replies Latest reply on Jul 4, 2013 1:41 PM by yradtsevich

    Jboss EAP 6.1 for Wnidows 32-bit

    drathore

      Hi,

       

      I'm getting below error during startup of Jboss EAP 6.1 beta.

       

      Error occurred during initialization of VM

      Could not reserve enough space for object heap

      Could not create the Java virtual machine.

       

      I thing  this is 'casue computer is running a 32-bit version, if yes then Could someone suggest me where can I find the version for 32 bit else what may be the reaon of above mentioned error?

       

      Thanks in advance.

      Dineshm

        • 1. Re: Jboss EAP 6.1 for Wnidows 32-bit
          jaikiran

          Dinesh, welcome to the forums.

           

          It's actually a problem with the startup script. Here's the bug for that https://bugzilla.redhat.com/show_bug.cgi?id=956281. The workaround is to remove the perm gen setting from the JAVA_OPTS line:

           

          Cause: The max perm gen space parameter is causing the JVM to not be created, which then prevents the server from starting.  This is specifically on Windows 8 32-bit JVM.

           

          Consequence: The server will not start.

           

          Workaround (if any): Remove the -XX:MaxPermSize=256m

          1 of 1 people found this helpful
          • 2. Re: Jboss EAP 6.1 for Wnidows 32-bit
            nickarls

            If possible, 32-bit JVMs should be avoided - often you see hosts with 4g mem but you can only address a small portion of it...

            • 3. Re: Jboss EAP 6.1 for Wnidows 32-bit
              wdfink

              Dinesh,

               

              as JBoss is written in Java there is only one version to download and it depend on the installed JVM whether you use 32 or 64 bit.

              It depends on the installed memory how you setup the heap parameter.

               

              It depends on the OS how much memory you can use with Java, the theoretical limit is 4GB for the whole process, that mean JVM code itself, program stack, permanent area and heap.

              Also you should not use all the available memory for Java as this might have dramatical performance problems.

              If you have less than 4GB memory you might use a 32bit VM which can be better as a 64bit VM in this case.

               

              What you could do is, use this options within the standalone.xml

              JAVA_OPTS="-Xms=1303m -Xmx1303m -XX:MaxPermSize=256m

              and start with 256m instead of 1303 and 128m instead of 256.

              Increase the memory to see where the maximum is, if your application does not need a big amount of memory you might be able to run the server in that environment successful.

               

              I would think that use of domain mode is not possible on a machine with <4GB as you have at minimum 3 JVM which need memory.

              • 4. Re: Jboss EAP 6.1 for Wnidows 32-bit
                drathore

                Hi Jai,

                 

                Thanks for you resopnse.

                 

                As per your suggestion, I checked the system variables, where I didn't find the JAVA_OPTS so I've created this variable with value -Xms256m -Xmx512m and it worked fine!!!

                 

                Jboss started

                 

                 

                32bit issue.bmp

                • 5. Re: Jboss EAP 6.1 for Wnidows 32-bit
                  nickarls

                  You can set it in standalone.conf.bat (standalone.bat will also pick up any env variables but I prefer to set it explicitly otherwise you'll sooner or later forget about it and change the system env. var.)

                  1 of 1 people found this helpful
                  • 6. Re: Jboss EAP 6.1 for Wnidows 32-bit
                    jaikiran

                    Nicklas is right - the correct place to set/update these values is the standalone.bat.conf (for Windows OS in standalone mode).

                    • 7. Re: Jboss EAP 6.1 for Wnidows 32-bit
                      ctomc

                      Dinesh, what is your exact version of OS & java?

                       

                      I can reproduce this on Windows8 64bit with 32bit java7, but this was only configuration i could reproduce it on...

                      Just want to cover all bases

                      • 8. Re: Jboss EAP 6.1 for Wnidows 32-bit
                        yradtsevich

                        I can reproduce the same problem 64-bit Windows 7, 32-bit JDK 7u25, 8 gig RAM, JBoss EAP 6.1.