The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomcat Server Restarting

Discussion in 'General Discussion' started by seby, Jul 2, 2011.

  1. seby

    seby Well-Known Member

    Joined:
    Oct 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Tomcat server getting restart frequently. Whenever it happens, we are getting Cpanel notification emails(4-5 mail per hour) as follows.

    I went through catalina logs and there is no crashes since June 17th.

    Anyone know how to fix this ?

    Thanks
     
    #1 seby, Jul 2, 2011
    Last edited: Jul 2, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Is there any service besides tomcat running on the machine? Can you please ps aux the services?

    Code:
    ps aux | grep tomcat
    I've seen instances where someone had a process such as a cron named with the same name as the service and chkservd was improperly detecting that cron rather than the actual tomcat process(es).
     
  3. seby

    seby Well-Known Member

    Joined:
    Oct 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for your reply.

     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I'm not seeing anything wrong with those processes to indicate any additional one running something else that is being detected. Do you have anything in the cron logs for tomcat?

    Code:
    grep -i tomcat /var/log/cron
     
  5. seby

    seby Well-Known Member

    Joined:
    Oct 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    /usr/local/jakarta/tomcat/logs/catalina.err shows

     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you have anything like prm or another service killer on the machine?

    If not, do you have a firewall and is port 8080 opened? Try telnetting to localhost on port 8080 to see the results on the machine:

    Code:
    telnet localhost 8080
    You should see something like the following:

    Code:
    root@host [~]# telnet localhost 8080
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Then at the prompt, enter the "quit" command and it should show something like this:

    Code:
    HTTP/1.1 400 Bad Request
    Server: Apache-Coyote/1.1
    Date: Wed, 06 Jul 2011 02:24:28 GMT
    Connection: close
    
    Connection closed by foreign host.
    Finally, just to be clear, you aren't using Tomcat in conjunction with nginx or litespeed rather than Apache on a machine?
     
  7. seby

    seby Well-Known Member

    Joined:
    Oct 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    We have installed csf on this server.

    It seems Port 8080 is opened in firewal configuration TCP_IN and TCP_OUT.


    Tomcat is not down all the time. After a certain period of time (no constant at all, can be between an hour or two) Tomcat will go down.

    Thanks,
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    At this point, could you try to open up a ticket for us to see if we can find any further details? There would also be another log you might review at /usr/local/apache/logs/mod_jk.log location.
     
  9. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Tristan,

    I have a similar issue and i have also posted a ticket on the support portal with ticket id 1911577.

    I also have an open thread on this board, with no response yet :- http://forums.cpanel.net/f5/tomcat-stops-every-few-min-236221.html

    I have the same issue, But when i stop CSF every thing returns to normal and tomcat works just fine.

    But i cannot figure out what could CSF be doing with tomcat.....

    Any help on this ?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What were the results of the ticket? I see we asked a question about whether port 8080 was opened in CSF/LFD, but we did not receive a response back. Please note that it helps substantially to receive a response back on the results of a suggested resolution.
     
Loading...

Share This Page