org.eclipse.jetty.util.preventers
类 GCThreadLeakPreventer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.preventers.AbstractLeakPreventer
org.eclipse.jetty.util.preventers.GCThreadLeakPreventer
- 所有已实现的接口:
- LifeCycle
public class GCThreadLeakPreventer
- extends AbstractLeakPreventer
GCThreadLeakPreventer
Prevents a call to sun.misc.GC.requestLatency pinning a webapp classloader
by calling it with a non-webapp classloader. The problem appears to be that
when this method is called, a daemon thread is created which takes the
context classloader. A known caller of this method is the RMI impl. See
http://stackoverflow.com/questions/6626680/does-java-garbage-collection-log-entry-full-gc-system-mean-some-class-called
This preventer will start the thread with the longest possible interval, although
subsequent calls can vary that. Recommend to only use this class if you're doing
RMI.
Inspired by Tomcat JreMemoryLeakPrevention.
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GCThreadLeakPreventer
public GCThreadLeakPreventer()
prevent
public void prevent(ClassLoader loader)
- 指定者:
- 类
AbstractLeakPreventer 中的 prevent
- 另请参见:
AbstractLeakPreventer.prevent(java.lang.ClassLoader)
Copyright © 2013. All Rights Reserved.