我正在使用java开发一个应用程序,并且我使用GlassFish Serve 3+作为我的容器,有时当我运行我的应用程序时遇到以下错误,我想知道原因是什么。
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1243: Filter execution threw an exception
root cause
java.lang.OutOfMemoryError: PermGen space
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.发布于 2013-02-19 13:28:29
java.lang.OutOfMemoryError
当Java Virtual Machine由于内存不足而无法分配对象,并且垃圾收集器无法提供更多的内存时抛出
。虚拟机可以构造OutOfMemoryError对象,就好像抑制被禁用和/或堆栈跟踪不可写一样。
检查使用new关键字创建的对象是否过多。要查找的位置包括循环、递归方法等。
https://stackoverflow.com/questions/14950318
复制相似问题