You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2008/04/01 00:27:37 UTC

Re: TC 4.1.36 stopped logging

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Barry,

Propes, Barry L wrote:
| all of a sudden, I've got a connection pool leak. I'll troubleshoot
| that separately from this issue, though quite honestly I'm not sure
| how it suddenly occurred, but I believe I can fix that....although
| what is one of the ideal monitoring tools?

Set:
~        removeAbandoned="true"
~        removeAbandonedTimeout="30"
~        logAbandoned="true"

on your <Resource> and you'll get stack traces in your log files when
connections are held for more than (in this case) 30 seconds. All of my
queries are nearly instantaneous, so a 30-second connection checkout is
considered a leak.

| Aside from that, there appears to be some latency in my logging...in
| other words, the errors getting logged seem to be substantially
| buffered then written to the log (not in real time) maybe hours later
| after an exception. I know this because I've purposely gone in and
| thrown or forced one so that I could see it in the logs.

Wow, that's odd. Which logging mechanism are you using? Is the clock on
your server correct?

| Is it possible my loggings jar file has gotten corrupted?

In my experience, the JAR either works or it doesn't. We had someone
check a JAR file into CVS without setting the "kb" flag (sets it to
binary) and everyone who was using win32 started getting errors all over
the place.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfxZVkACgkQ9CaO5/Lv0PA9AgCfdujqHU5qa37/bxYMoj7InjU0
v28An0hhtHdv+br84r8vr6tgQEtUNE55
=1VrG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org