论坛首页 入门技术论坛

tomcat报内存溢出permgen space java.lang.OutOfMemeryEror问题解决

浏览 4671 次
该帖已经被评为新手帖
作者 正文
   发表时间:2007-08-14  

在bin文件夹下的catalina.bat中加入一条语句,(红色标出),这样我的就不报错了,可以要根据自己机的内存大小来配置参数

rem ----- Execute The Requested Command ---------------------------------------

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:       %JAVA_HOME%

set _EXECJAVA=%_RUNJAVA%
set MAINCLASS=org.apache.catalina.startup.Bootstrap
set ACTION=start
set SECURITY_POLICY_FILE=
set DEBUG_OPTS=
set JPDA=

set JAVA_OPTS=-Xms128m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=128m

if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_shmem
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=jdbconn
:gotJpdaAddress
shift
:noJpda

............................

论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics