0

我正在使用 JSF(使用 JSF Majorra 2.1.6)和 JPA(使用库 EclipseLink Juno)和 tomcat 7 server 开发 Java EE 应用程序。问题是当我将 JPA 应用程序添加到 tomcat 时,Tomcat 无法运行,并且我在控制台末尾有以下消息:

                       Infos: Cleaned up javabean caches
                       java.lang.OutOfMemoryError: PermGen space
                                              at java.lang.ClassLoader.findBootstrapClass(Native Method)
                                              at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
                                              at java.lang.ClassLoader.loadClass(Unknown Source)
                                                       at java.lang.ClassLoader.loadClass(Unknown Source)
                   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
                   at java.lang.ClassLoader.loadClass(Unknown Source)
                   at java.lang.ClassLoader.loadClass(Unknown Source)
                                              at java.lang.Class.forName0(Native Method)
                                                       at java.lang.Class.forName(Unknown Source)
                                              at org.apache.catalina.loader.WebappClassLoader.clearReferencesRmiTargets(WebappClassLoader.java:2556)
                                              at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1961)
                                              at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1864)
                                              at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:658)
                                              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225)
                                              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5509)
                                              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225)
                                              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
                                              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
                                              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
                                              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
                                              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055)
                                              at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978)
                                              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
                                              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
                                              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
                                              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                                              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
                                              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
                                              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
                                              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
                                              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
                                              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

谢谢您的帮助。

4

1 回答 1

0

看起来你的内存不足了。

您需要增加堆大小或烫发大小。

于 2013-04-15T13:12:14.660 回答