Tomcat服务器无法从myeclipse启动

时间:2014-09-27 16:43:19

标签: myeclipse tomcat5.5

Tomcat正在运行,当我从startup.bat运行它并且我的应用程序启动时,但是当我从eclipse运行服务器时,我收到以下错误,

log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
27 Sep 2014 22:15:30,301 INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].log():653 [main] - Initializing Spring root WebApplicationContext
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
27 Sep 2014 22:15:36,874 INFO com.liferay.portal.util.PortalImpl.<init>():252 [main] - Portal lib directory /D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/
27 Sep 2014 22:15:41,076 INFO com.liferay.portal.kernel.util.ServerDetector.getServerId():104 [main] - Detected server tomcat
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space

1 个答案:

答案 0 :(得分:0)

通过在可选的jvm参数中添加以下参数找到一种方法。(window - &gt; preference - &gt; tomcat 5.x - &gt; JDK)

-XX:+DisableExplicitGC
-XX:MaxPermSize=512m
-XX:PermSize=256m
-XX:MaxNewSize=256m
-XX:NewSize=512m