tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Weird Intermittent NoClassDefFound
Date Thu, 30 Jul 2009 15:51:17 GMT
Hash: SHA1


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
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message