3 Replies Latest reply on Nov 21, 2014 5:23 AM by wdfink

    JBoss - Not working the next day

    mduffour

      We are having a problem, our JBoss EAP 6.3 cluster (2 nodes in domain mode + Apache) on a Centos OS, is not working after a period of inactivity (night). Its connected to an ldap. We do login, timesout and get Service Temporarily Unavailable, then reload the page and sometimes works, others no.

       

      We have to restart the server every morning, then its all ok until the next day. What could be the cause of this problem? Can you point us on the right direction?

        • 1. Re: JBoss - Not working the next day
          jaysensharma

          Do you see any error in the logs?

          Also do you have the garbage collection logs of the jboss instances.

          When you see the service unavailable messages that time did you notice the JBoss logs for any error/warn?  If it is hanged or responding slow then collect 5-6 thread dumps to see the thread activities.

          • 2. Re: JBoss - Not working the next day
            mduffour

            I added categories org.jboss.web, org.jboss.security, org.jboss.ha, org.jboss.cache,org.jboss.as.web.sso and org.jboss.as.config, set level to trace, but i dont see nothing weird.

            How do i set up garbage collection logs? On apache logs i got some errors like "cant read node" errors.

             

            It seems that when we do a ssh and connect to the jboss domain node host, it starts working, could be SELinux related?

            • 3. Re: JBoss - Not working the next day
              wdfink

              GC logging is simple to activate, Use a search with "enable gc logging", a hit will be https://confluence.atlassian.com/display/CONFKB/Enable+Garbage+Collection+Logging

               

              Do you have a very simpe test app deployed? Did this work? Maybe you deploy this app in case of the problem and try to see whether it gest deployed and accessable.

              In this case GC and JBoss seems working. Than you need to look for the environment like LDAP etc.