Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 由于动态代理对象导致的OutOfMemory错误Permgen space_Spring_Out Of Memory_Permgen_Proxies - Fatal编程技术网

Spring 由于动态代理对象导致的OutOfMemory错误Permgen space

Spring 由于动态代理对象导致的OutOfMemory错误Permgen space,spring,out-of-memory,permgen,proxies,Spring,Out Of Memory,Permgen,Proxies,我在服务器上反复部署和取消部署同一个基于Spring的应用程序。 这是一个Oracle事件处理应用程序,容器大量使用Spring 在jprofiler中,我看到org.springframework.osgi.context.internal.classloader.ChainedClassL的多个实例 加载程序加载类,如com.sun.proxy.$Proxy6179 这些类似乎永远不会随着后续部署而卸载。 从对象引用图中,我看到像StaticServiceProxyCreator这样的类 O

我在服务器上反复部署和取消部署同一个基于Spring的应用程序。 这是一个Oracle事件处理应用程序,容器大量使用Spring

在jprofiler中,我看到org.springframework.osgi.context.internal.classloader.ChainedClassL的多个实例 加载程序加载类,如com.sun.proxy.$Proxy6179

这些类似乎永远不会随着后续部署而卸载。 从对象引用图中,我看到像StaticServiceProxyCreator这样的类 OsgiServiceCollectionProxyFactory保留对这些代理对象的引用

如何在JDK 7上消除此错误? 增加Permgen空间不是解决方案,因为它只会延迟错误

谢谢,
Yogesh

AFAIK,这是Tomcat在Oracle JVM中的一个已知问题,没有解决方法(除非使用另一个容器或另一个JVM)。参考资料: