Red Hat Bugzilla – Bug 863502
EMS ConnectionFactory.discoverServerClasses can throw OutOfMemoryError
Last modified: 2014-03-26 04:31:03 EDT
Created attachment 622290 [details]
Addresses OutOfMemoryError in EMS
I have a Tomcat installation with a lot of files in a server directory. So many files that it is an issue finding the server classes.
This is what I see.
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.io.UnixFileSystem.list(Native Method)
The obvious improvement would be to catch the exception.
Patch is attached
How many files do you have in your server directory?
Which directory is it of the Tomcat server?
What kind of files are you storing there?
Probably tens or hundreds of thousands of files in a single directory. It was a directory that did not contain classes but data files.
I'm guessing this is not really a big issue but the plugin should not have been looking for classes in there.
Fixed in master
Author: Thomas Segismont <firstname.lastname@example.org>
Date: Wed Jul 3 14:01:00 2013 +0200
Changed the libraryURI root: the plugin was looking for catalina jars from the CATALINA_HOME directory, instead of CATALINA_HOME/lib.
Now users can put any number of files in CATALINA_HOME, provided they're outside the lib directory.
Reverted. This needs to go through the EWS team
Created attachment 772164 [details]
Search recursively for EMS connection classes in HOME/lib instead of HOME (HOME/server/lib on Tomcat 5.5)
The new patch is looking good, and can be backported if needed as it will certainly support Tomcat 5.5 as well. In case the functionality is really required in some cases.
commit 794d564b16b697870ca92040f27acbcdcad63522 in master
Bulk closing now that 4.10 is out.
If you think an issue is not resolved, please open a new BZ and link to the existing one.