tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Weird Intermittent NoClassDefFound
Date Thu, 30 Jul 2009 15:51:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

On 7/29/2009 5:18 PM, Chris Masters wrote:
> Thanks for the quick reply Pierre - I've been reading up since,
> checked and my installation is OK.
> 
> However, I think I may have found the problem. Sometimes a class
> loader will throw a NoClassDefFound when a static block throws an
> Exception. I think the hibernate and jgroup classes in question where
> trying to grab a file handle and the system limit had been reached
> (in the tomcat users case 1024).

That will certainly do it.

> This is quite a loaded box doing all
> the batch processing so not unreasonable. Does this make sense?

It does, except that I wonder where all your file handles are going. How
many <Connectors> do you have? How many simultaneous connections do each
of them allow? Do you keep a lot of files open? Do you have a lot of JAR
files in your WEB-INF/lib directory?

> I'll check the classes in question and see if that's what they're
> doing.

Always a good idea.

You can also raise the process fd limit, if this really is a "not enough
resources" issue rather than a resource leak. Just like heap space,
sometimes you really do just need more file handles.

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

iEYEARECAAYFAkpxwXUACgkQ9CaO5/Lv0PAr2gCeLXmbhztaslfHlD5SFQZiUX6T
Ts8AnR0lYaj0SrVKD/I7aDiudyya/995
=93h+
-----END PGP SIGNATURE-----

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


Mime
View raw message