我有一个使用 Netbeans IDE 开发的 Web 应用程序。我从 WSDL 添加了一个 Web 服务。问题是每次我部署它时它都会变得更重和更慢。有时它会使我的 IDE 崩溃。
我不知道如何解决这个问题。我在 stackoverflow 上阅读了其他问题,但他们只是建议扩展 permSpace 或类似的东西。我宁愿尝试了解发生了什么问题,以及为什么我的空间没有按应有的方式清理。
这是我在 Tomcat 的控制台中得到的:
INFO: WSSERVLET13: JAX-WS context listener destroyed
13-nov-2013 16.24.02 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/SOAPolls] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@53c6a7fc]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@173ebc5c]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
13-nov-2013 16.24.02 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/SOAPolls] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@17c047f0]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
13-nov-2013 16.24.02 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/SOAPolls] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@50b2e9be]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@14a877c0, class com.sun.xml.ws.runtime.config.Tubelines=java.lang.ref.WeakReference@404de8d8, class java.util.ArrayList=java.lang.ref.WeakReference@3af1dde3, class com.sun.xml.ws.runtime.config.TubelineDefinition=java.lang.ref.WeakReference@5d1e8050, class com.sun.xml.ws.runtime.config.TubeFactoryList=java.lang.ref.WeakReference@7d7a33f2, class com.sun.xml.ws.runtime.config.MetroConfig=java.lang.ref.WeakReference@61e89539, class com.sun.xml.ws.runtime.config.TubeFactoryConfig=java.lang.ref.WeakReference@6c9d0366, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@384a553f}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
13-nov-2013 16.24.02 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/SOAPolls] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@17c047f0]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
13-nov-2013 16.24.03 org.apache.catalina.startup.HostConfig deleteRedeployResources
我能做些什么?
另外:有没有办法手动清除我需要的空间,以使我的应用程序运行得更久(这是一个临时解决方案,因为我在接下来的几天要考试)?
编辑:我试图重新启动服务器。但有时当我尝试停止 Tomcat 时,IDE 将无法取消部署应用程序(一切都卡住了)。