Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have tomcat 6 running perfectly all jsp files tested and working, but Tomcat get closed abnormally any time, i am not able to diagnose the cause.

Suggest how to diagnose.

share|improve this question
    
Could you please add more detail to your question? Especially OS version and error messages / stacktraces from log files would be helpful. –  Axel Knauf Jul 16 '11 at 13:39

1 Answer 1

If it is happening every time you log off and it is a Windows box you are logging off, add the -Xrs switch to your jvm startup parameters. Windows logoff events are misinterpreted by the jvm as shutdown events and the jvm unloads.

If it is a unix host and you connect remotely with an ssh client, make sure that x11 port forwarding is disabled in your client. It causes problems in jfreechart, which results in abnormal shutdowns, too. If you do need x11 port forwarding enabled, modify your tomcat startup parameters with: unset DISPLAY.

If none of these apply, make sure your app isn't calling System.exit() anywhere. That could do it, too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.