Hi folks,
I have two tomcats here working in parallel on separate servers. Both have exactly the same configuration and get requests by a load balancer. On each
tomcat my
struts webapp is deployed. Both webapps are accessing the same database. And both suddenly stopped working without any kind of error message.
What happened yesterday in detail is that suddenly server A stopped working. The logs stopped at 09:55am . No error message, nothing. When I tried to connect to the server my connection timed out. Half an hour later server B also stopped working. Exactly the same way, no connection possible no error in log. After resetting Server A at 10:40am the other server (B) suddenly continued working. There where some minor error in the log caused by lost connections... but thats all. Server B just kept working as if nothing has happened.
My first suggestion was that there was an deadlock situation at the database...but during the 'pause'-time there weren't any waiting connections. Next to this even if the database isn't available the tomcat should do something, shouldn't it? Like accepting the connection and do some logging (I do some logging every time a user connects, independent whether he's accessing data from the db or not)....Additionally the database in the tomcat runs in a timeout after 10s.
I am always thinking about the DB since it's the only thing how both servers are connected. There is no interaction between the two servers except via the database.
Since the restart of tomcat A everything is working perfectly again.
Does anyone of you have any idea what could has happened here?
Thanks in advance for your help!
Alex