G
georgesbilodeau
Here's my problem:
I run a secure (SSL) Java-based web app, using Tomcat
5.5.17/Apache/mod_jk. Those reside on one server while MySQL 5.0 sits
on another. All servers are running CentOS 4.3 and have plenty of RAM
(2-3 GB) and fast CPUs. The site runs perfectly fine for a while, then
all of a sudden it stops responding. Trying to hit any page on the site
that requires a DB connection just stalls and stalls and the page is
never served.
I use a custom-made database connection pool that doesn't have any
serious problems. If a connection in the pool leaks, which happens very
rarely, the app is able to recover, and if all connections have leaked,
the app will open up new connections to the DB (the app has never
actually leaked all connections in production, just in testing).
The app will be running for fine for a day or two, without any hitch in
response time, then all of a sudden the site will hang inexplicably.
There are no errors to speak of in the catalina log when it hangs like
this. MySQL is still running because other apps can hit the same
database without a problem. Tomcat & Apache are both still running
because I can access pages on the site that don't require a DB
connection.
I use the export LD_ASSUME_KERNEL=2.4.1 setting in my Tomcat startup to
avoid stability problems, since the CentOS distribution I use is Red
Hat 9.0-based (see
http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt).
I've racked my brain for days on end trying to figure this one out but
I'm completely stumped. Any ideas would be greatly appreciated.
Georges
I run a secure (SSL) Java-based web app, using Tomcat
5.5.17/Apache/mod_jk. Those reside on one server while MySQL 5.0 sits
on another. All servers are running CentOS 4.3 and have plenty of RAM
(2-3 GB) and fast CPUs. The site runs perfectly fine for a while, then
all of a sudden it stops responding. Trying to hit any page on the site
that requires a DB connection just stalls and stalls and the page is
never served.
I use a custom-made database connection pool that doesn't have any
serious problems. If a connection in the pool leaks, which happens very
rarely, the app is able to recover, and if all connections have leaked,
the app will open up new connections to the DB (the app has never
actually leaked all connections in production, just in testing).
The app will be running for fine for a day or two, without any hitch in
response time, then all of a sudden the site will hang inexplicably.
There are no errors to speak of in the catalina log when it hangs like
this. MySQL is still running because other apps can hit the same
database without a problem. Tomcat & Apache are both still running
because I can access pages on the site that don't require a DB
connection.
I use the export LD_ASSUME_KERNEL=2.4.1 setting in my Tomcat startup to
avoid stability problems, since the CentOS distribution I use is Red
Hat 9.0-based (see
http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt).
I've racked my brain for days on end trying to figure this one out but
I'm completely stumped. Any ideas would be greatly appreciated.
Georges