Connection refused tomcat 8080

April 10, 2018 712 views
Apache Java Ubuntu 16.04

Good afternoon,

I have the following problem, I installed tomcat + mysql and I am accessing the application externally direct through (ip + port + context), Example: http: // 196 ....: 8080/ApplicationContext.

After a certain time of use of the application of the nothing begins to give "Connection Refused" ERRCONNECTIONREFUSED.

After a certain time, about 5 minutes the application returns to normal operation without any restart or inter- change.

Is it necessary to release some configuration?

1 Answer

When you begin seeing the connection refused error is your tomcat app logging anything for those requests?

When you are seeing the connection refused error are you still able to log in via SSH or connect to any other services you're running on your droplet?

  • I looked in the logs and there is nothing wrong, and the ssh connection works normally, I believe it's a session or something, my application's web.xml is configured with -1 to never expire the session

    <session-config>
        <session-timeout>-1</session-timeout>
    </session-config>
    
Have another answer? Share your knowledge.