Skip navigation links
C D E F G I J O P R S T U W 

C

CAUCHO_TRANSACTION_IMPL - Static variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Class name for per thread transaction in Caucho Resin transaction manager
ClassLoaderLeakPreventor - Class in se.jiderhamn.classloader.leak.prevention
This class helps prevent classloader leaks.
ClassLoaderLeakPreventor() - Constructor for class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
ClassLoaderLeakPreventor.ClearingThreadLocalProcessor - Class in se.jiderhamn.classloader.leak.prevention
ThreadLocalProcessor that not only detects and warns about potential leaks, but also tries to clear them
ClassLoaderLeakPreventor.JURTKiller - Class in se.jiderhamn.classloader.leak.prevention
Inner class with the sole task of killing JURT finalizer thread after it is done processing jobs.
ClassLoaderLeakPreventor.ThreadLocalProcessor - Interface in se.jiderhamn.classloader.leak.prevention
 
ClassLoaderLeakPreventor.WarningThreadLocalProcessor - Class in se.jiderhamn.classloader.leak.prevention
ThreadLocalProcessor that detects and warns about potential leaks
clearBeanELResolverCache() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Clean the cache of BeanELResolver
clearDefaultAuthenticator() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Clear the default java.net.Authenticator (in case current one is loaded in web app).
clearDefaultProxySelector() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
If default ProxySelector is loaded by web application it needs to be unset
ClearingThreadLocalProcessor() - Constructor for class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.ClearingThreadLocalProcessor
 
clearIntrospectionUtilsCache() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Clear IntrospectionUtils caches of Tomcat and Apache Commons Modeler
clearRmiTargetsMap(Map<?, ?>) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Iterate RMI Targets Map and remove entries loaded by web app classloader
clearThreadLocalsOfAllThreads() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
constructRuntimeExceptionWithoutStackTrace(String, Throwable) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Construct a new RuntimeException without any stack trace, in order to avoid any references back to this class
contextDestroyed(ServletContextEvent) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
contextInitialized(ServletContextEvent) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
createAccessControlContext() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor

D

debug(String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" debug logging override this method in a subclass and make that subclass method empty.
deregisterIIOServiceProvider() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Unregister ImageIO Service Provider loaded by the web application class loader
deregisterJdbcDrivers() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Deregister JDBC drivers loaded by web app classloader
deregisterPropertyEditors() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Deregister custom property editors
deregisterRmiTargets() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
This method is heavily inspired by org.apache.catalina.loader.WebappClassLoader.clearReferencesRmiTargets()
deregisterSecurityProviders() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Deregister custom security providers
deregisterShutdownHooks() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Find and deregister shutdown hooks.
destroyThreadGroups() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Destroy any ThreadGroups that are loaded by the application classloader

E

error(String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" error logging override this method in a subclass and make that subclass method empty.
error(Throwable) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" error logging override this method in a subclass and make that subclass method empty.
executeShutdownHooks - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Should shutdown hooks registered from the application be executed at application shutdown?

F

findClass(String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
findClass(String, boolean) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
findField(Class<?>, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
findFieldOfClass(String, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
findFieldOfClass(String, String, boolean) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
findMethod(Class<?>, String, Class...) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
fixBeanValidationApiLeak() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
fixGeoToolsLeak() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Shutdown GeoTools cleaner thread as of https://osgeo-org.atlassian.net/browse/GEOT-2742
fixJsfLeak() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Workaround for leak caused by Mojarra JSF implementation if included in the container.
forceStartOpenOfficeJurtCleanup() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
The bug detailed at https://issues.apache.org/ooo/show_bug.cgi?
forEachThreadLocalInCurrentThread(ClassLoaderLeakPreventor.ThreadLocalProcessor) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Loop ThreadLocals and inheritable ThreadLocals in current Thread and for each found, invoke the callback interface
forEachThreadLocalInThread(Thread, ClassLoaderLeakPreventor.ThreadLocalProcessor) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 

G

gc() - Static method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Unlike System.gc() this method guarantees that garbage collection has been performed before returning.
getAllThreads() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Get a Collection with all Threads.
getDefaultAuthenticator() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Find default Authenticator
getFieldValue(Object, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getFieldValue(Field, Object) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getIntInitParameter(ServletContext, String, int) - Static method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Parse init parameter for integer value, returning default if not found or invalid
getLogPrefix() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getStaticFieldValue(Class<?>, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getStaticFieldValue(String, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getStaticFieldValue(String, String, boolean) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getStaticFieldValue(Field) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
getThreadLocalProcessor() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
getWebApplicationClassLoader() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 

I

info(String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" info logging override this method in a subclass and make that subclass method empty.
initAwt() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initDatatypeConverterImpl() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initDocumentBuilderFactory() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initJarUrlConnection() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initJava2dDisposer() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initJavaxSecurityLoginConfiguration() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initJdbcDrivers() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initLdapPoolManager() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initOracleJdbcThread() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
See https://github.com/mjiderhamn/classloader-leak-prevention/issues/8 and https://github.com/mjiderhamn/classloader-leak-prevention/issues/23 and http://java.jiderhamn.se/2012/02/26/classloader-leaks-v-common-mistakes-and-known-offenders/
initSecurityPolicy() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initSecurityProviders() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initSunAwtAppContext() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
initSunGC() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To skip this step override this method in a subclass and make that subclass method empty.
isJBoss() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Override this method if you want to customize how we determine if we're running in JBoss WildFly (a.k.a JBoss AS).
isJettyWithJMX() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Are we running in Jetty with JMX enabled?
isJvmShuttingDown() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Is the JVM currently shutting down?
isLoadedByWebApplication(Class<?>) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Test if provided class is loaded with web application classloader
isLoadedInWebApplication(Object) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Test if provided object is loaded with web application classloader
isOracleJRE() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Override this method if you want to customize how we determine if this is a Oracle/Sun Java Runtime Environment.
isThreadInWebApplication(Thread) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
isWebAppClassLoaderOrChild(ClassLoader) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Test if provided ClassLoader is the classloader of the web application, or a child thereof

J

java_lang_Thread_inheritableThreadLocals - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
java_lang_Thread_threadLocals - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
java_lang_ThreadLocal$ThreadLocalMap$Entry_value - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
java_lang_ThreadLocal$ThreadLocalMap_table - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
JURT_ASYNCHRONOUS_FINALIZER - Static variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
JURTKiller(Thread) - Constructor for class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.JURTKiller
 

O

otherListeners - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Other ServletContextListeners to use also

P

process(Thread, Reference<?>, ThreadLocal<?>, Object) - Method in interface se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.ThreadLocalProcessor
 
process(Thread, Reference<?>, ThreadLocal<?>, Object) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.WarningThreadLocalProcessor
 
processLeak(Thread, Reference<?>, ThreadLocal<?>, Object, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.ClearingThreadLocalProcessor
 
processLeak(Thread, Reference<?>, ThreadLocal<?>, Object, String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.WarningThreadLocalProcessor
After having detected potential ThreadLocal leak, this method is called.
processThreadLocalMap(Thread, ClassLoaderLeakPreventor.ThreadLocalProcessor, Object) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 

R

removeShutdownHook(Thread) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Deregister shutdown hook and execute it immediately
removeWrappedAuthenticators(Authenticator) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Recursively removed wrapped Authenticator loaded in this webapp.
replaceDOMNormalizerSerializerAbortException() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
As reported at https://github.com/mjiderhamn/classloader-leak-prevention/issues/36, invoking DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument().normalizeDocument(); or Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); DOMImplementationLS implementation = (DOMImplementationLS)document.getImplementation(); implementation.createLSSerializer().writeToString(document); may trigger leaks caused by the static fields com.sun.org.apache.xerces.internal.dom.DOMNormalizer#abort and com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl#abort respectively keeping stacktraces/backtraces that may include references to classes loaded by our web application.
run() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.JURTKiller
 

S

se.jiderhamn.classloader.leak.prevention - package se.jiderhamn.classloader.leak.prevention
 
setFinalStaticField(Field, Object) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
SHUTDOWN_HOOK_WAIT_MS_DEFAULT - Static variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Default no of milliseconds to wait for shutdown hook to finish execution
shutdownHookWaitMs - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
No of milliseconds to wait for shutdown hooks to finish execution, before stopping them.
startOracleTimeoutThread - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Should the oracle.jdbc.driver.OracleTimeoutPollingThread thread be forced to start with system classloader, in case Oracle JDBC driver is present?
stopThreads - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Should threads tied to the web app classloader be forced to stop at application shutdown?
stopThreads() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Partially inspired by org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads()
stopTimerThread(Thread) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
 
stopTimerThreads - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Should Timer threads tied to the web app classloader be forced to stop at application shutdown?

T

THREAD_WAIT_MS_DEFAULT - Static variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Default no of milliseconds to wait for threads to finish execution
threadWaitMs - Variable in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
No of milliseconds to wait for threads to finish execution, before stopping them.

U

unregisterMBeans() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Unregister MBeans loaded by the web application class loader
unregisterMXBeanNotificationListeners() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Unregister MBeans loaded by the web application class loader, and MBean NotificationListeners loaded by the web application class loader
unregisterNotificationListeners(NotificationBroadcasterSupport) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Unregister NotificationListeners from subclass of NotificationBroadcasterSupport, if listener, filter or handback is loaded by the web app classloader.
unsetCachedKeepAliveTimer() - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Since Keep-Alive-Timer thread may have terminated, but still be referenced, we need to make sure it does not reference this classloader.

W

waitForThread(Thread, long) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
Make the provided Thread stop sleep(), wait() or join() and then give it the provided no of milliseconds to finish executing.
warn(String) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" warn logging override this method in a subclass and make that subclass method empty.
warn(Throwable) - Method in class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor
To "turn off" warn logging override this method in a subclass and make that subclass method empty.
WarningThreadLocalProcessor() - Constructor for class se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.WarningThreadLocalProcessor
 
C D E F G I J O P R S T U W 
Skip navigation links

Copyright © 2016. All rights reserved.