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 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.preventers.AbstractLeakPreventer 继承的字段
LOG
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
GCThreadLeakPreventer()
           
 
方法摘要
 void prevent(ClassLoader loader)
           
 
从类 org.eclipse.jetty.util.preventers.AbstractLeakPreventer 继承的方法
doStart
 
从类 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.