My webserver hangs every now and then, and I've never
been able to figure out quite why. These days, every
time it happens, I do a jstack dump, and a lot of
threads show that they are blocked within c3p0. I'm not
very good at reading these stack traces, but it looks
to me like c3p0 is causing the hang.
I'm attaching the jstack output. The first lines got
cut off because my buffer was only (!) set to 9999
lines. But I believe the important information should
Once I run jstack the webserver starts responding again.
Note that there is definitely something going on
between the webserver and the database, since static
pages load fine, while dynamic ones that access the
database do not.
My setup is Jetty 5.1.4 + Hibernate 2.1.9 + c3p0 0.9.02
+ Mysql 4.1 on Linux.