Tomcat – Apache/Tomcat mod_jk error message 61

apache-2.2tomcat

I'm seeing spam in the mod_jk.log file, with the following error message:
jk_connect.c (593): connect to 127.0.0.1:8009 failed (errno=61)

Tomcat is running properly, there are no firewalls configured between Apache and Tomcat (they are both running on the same machine), and there is a listener up on 8009. The connector runs properly for several days at a time, before starting to spam the log files with the above message, for any and all new connections.

Once the spam starts, the only way I've discovered to recover from it is to first restart Tomcat, and then restart Apache.

What are the most likely causes for this kind of problem?

Best Answer

this can have multiple reasons:

  • tomcat is not running
  • tomcat is running, but no connector for port 8009 is configured
  • tomcat is running, but a firewall between apache and tomcat does not allow traffic on port 8009 (should not be the case in your situation)
  • tomcat is running, but not listening on this ip