public class JreMemoryLeakPreventionListener extends java.lang.Object implements LifecycleListener
Memory leaks occur when JRE code uses the context class loader to load a singleton as this will cause a memory leak if a web application class loader happens to be the context class loader at the time. The work-around is to initialise these singletons when Tomcat's common class loader is the context class loader.
Locked files usually occur when a resource inside a JAR is accessed without first disabling Jar URL connection caching. The workaround is to disable this caching by default.
Constructor and Description |
---|
JreMemoryLeakPreventionListener() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassesToInitialize() |
boolean |
getForkJoinCommonPoolProtection() |
boolean |
isAppContextProtection() |
boolean |
isAWTThreadProtection() |
boolean |
isDriverManagerProtection() |
boolean |
isGcDaemonProtection() |
boolean |
isLdapPoolProtection() |
boolean |
isSecurityLoginConfigurationProtection() |
boolean |
isSecurityPolicyProtection() |
boolean |
isTokenPollerProtection() |
boolean |
isUrlCacheProtection() |
boolean |
isXmlParsingProtection() |
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setAppContextProtection(boolean appContextProtection) |
void |
setAWTThreadProtection(boolean awtThreadProtection) |
void |
setClassesToInitialize(java.lang.String classesToInitialize) |
void |
setDriverManagerProtection(boolean driverManagerProtection) |
void |
setForkJoinCommonPoolProtection(boolean forkJoinCommonPoolProtection) |
void |
setGcDaemonProtection(boolean gcDaemonProtection) |
void |
setLdapPoolProtection(boolean ldapPoolProtection) |
void |
setSecurityLoginConfigurationProtection(boolean securityLoginConfigurationProtection) |
void |
setSecurityPolicyProtection(boolean securityPolicyProtection) |
void |
setTokenPollerProtection(boolean tokenPollerProtection) |
void |
setUrlCacheProtection(boolean urlCacheProtection) |
void |
setXmlParsingProtection(boolean xmlParsingProtection) |
public boolean isAppContextProtection()
public void setAppContextProtection(boolean appContextProtection)
public boolean isAWTThreadProtection()
public void setAWTThreadProtection(boolean awtThreadProtection)
public boolean isGcDaemonProtection()
public void setGcDaemonProtection(boolean gcDaemonProtection)
public boolean isSecurityPolicyProtection()
public void setSecurityPolicyProtection(boolean securityPolicyProtection)
public boolean isSecurityLoginConfigurationProtection()
public void setSecurityLoginConfigurationProtection(boolean securityLoginConfigurationProtection)
public boolean isTokenPollerProtection()
public void setTokenPollerProtection(boolean tokenPollerProtection)
public boolean isUrlCacheProtection()
public void setUrlCacheProtection(boolean urlCacheProtection)
public boolean isXmlParsingProtection()
public void setXmlParsingProtection(boolean xmlParsingProtection)
public boolean isLdapPoolProtection()
public void setLdapPoolProtection(boolean ldapPoolProtection)
public boolean isDriverManagerProtection()
public void setDriverManagerProtection(boolean driverManagerProtection)
public boolean getForkJoinCommonPoolProtection()
public void setForkJoinCommonPoolProtection(boolean forkJoinCommonPoolProtection)
public java.lang.String getClassesToInitialize()
public void setClassesToInitialize(java.lang.String classesToInitialize)
public void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.