我有一个使用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将无法取消部署该应用程序(一切都陷入困境)。

最佳答案

解决方案是将所有需要的库文件(webservices * .jar,activation.jar)放在tomcat \ lib目录中,并将其从Webapp WEB-INF \ lib中删除。

07-28 03:06
查看更多