7 Replies Latest reply on Jan 14, 2015 4:51 AM by wdfink

    JBoss EAP 6.3 Beta - Server Startup Timeout

    shwelzen

      Hi,

       

      I am doing a performance test for JBoss EAP 6.3 Beta.

      I get the following message when server is started everytime.

       

      Stopping jboss-as:                                         [  OK  ]

      Starting jboss-as: jboss-as failed to startup in the time allotted

                                                                 [FAILED]

       

      When, i check the log, i see that server has started without any issues.

      Even the application deployed can be accessed.

       

      Can someone help me on why i get a failed status instead of OK?

       

      Also, i see that performance is not as good as JBoss 7.1.1

      Any tuning parameters available so that i can reach more http requests per second? (apart from executor parameter)

       

      Thanks,

      Sheldon

        • 1. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
          wdfink

          How do you start the server and when you see the message?

           

          The performance is mostly related to the application and its requirements. The first point to check is the JVM GC behaviour which often cause issues. Check whether you use the same JVM version and settings and monitor/tune the GC.

          • 2. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
            shwelzen

            Hi,

             

            So, the JBoss EAP is started as a service.

            In most cases, the server is restarted (so that it stops and starts again)

             

            Commands used:

            service jboss restart

            service jboss start

            service jboss stop

             

            where jboss is a file created under /etc/init.d

             

            I thing noticed was that the stop command is not working.

            Although, the command prompt states OK, there is no entry in the log to state that server has been stopped.

             

            Also, on server startup, 2 issues are seen

             

            1) Failure to start server as address is already is use (which is expected if jboss did not stop correctly before)

             

            2) An error on the prompt which states Failed. However, as per server.log, there was no issue on startup

             

            On using the command: systemctl -l status jboss.service

            , below error message is seen that indicates that server did not startup on time allocated.

             

            [root@ip-12-1-0-26 log]# systemctl -l status jboss.service

            jboss.service - SYSV: JBoss AS Standalone

               Loaded: loaded (/etc/rc.d/init.d/jboss)

               Active: failed (Result: exit-code) since Tue 2014-07-01 20:39:20 EDT; 54s ago

              Process: 2642 ExecStart=/etc/rc.d/init.d/jboss start (code=exited, status=7)

             

             

            Jul 01 20:38:49 ip-12-1-0-26.ec2.internal systemd[1]: Starting SYSV: JBoss AS Standalone...

            Jul 01 20:38:49 ip-12-1-0-26.ec2.internal runuser[2652]: pam_unix(runuser:session): session opened for user jboss by (uid=0)

            Jul 01 20:39:20 ip-12-1-0-26.ec2.internal jboss[2642]: Starting jboss-as: jboss-as failed to startup in the time allotted

            Jul 01 20:39:20 ip-12-1-0-26.ec2.internal jboss[2642]: [FAILED]

            Jul 01 20:39:20 ip-12-1-0-26.ec2.internal systemd[1]: jboss.service: control process exited, code=exited status=7

            Jul 01 20:39:20 ip-12-1-0-26.ec2.internal systemd[1]: Failed to start SYSV: JBoss AS Standalone.

            Jul 01 20:39:20 ip-12-1-0-26.ec2.internal systemd[1]: Unit jboss.service entered failed state.

             

             

            Thanks,

            Sheldon

            • 3. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
              rosswerks

              any luck with this? i am having the same problem...

              • 4. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
                miteshmanani

                This problem ive faced when i configure Jboss as Server in eclipse... How do you run your jboss from some IDE or Shell/Command Window ?

                • 5. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
                  rosswerks

                  we both run it as a service

                  • 6. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
                    angmang

                    Realize this might be OBE but I got around this by editing the jboss-as.conf file and adding uncommenting/editing this line:

                    # The amount of time to wait for startup

                    #

                    STARTUP_WAIT=60

                     

                    After that I didn't get the error anymore. It's an imperfect solution as it seems to act like a 1 minute delay as opposed to an actual timeout but it's an acceptable workaround for me.

                    • 7. Re: JBoss EAP 6.3 Beta - Server Startup Timeout
                      wdfink

                      You might check the logfiles if there is a hint what need a long time, maybe initializing some resources took longer and you are able to improve here.