Tomcat – java.lang.OutOfMemoryError: PermGen space
来源:互联网 发布:手机java 编译器 编辑:程序博客网 时间:2024/05/01 18:50
原文地址:http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/
运行jeewx项目,遇到了java.lang.OutOfMemoryError: PermGen space错误,找了一些办法,还是这个比较管用
2. Windows
Tomcat is managed by this script file catalina.bat
, dive inside the script, you will find out that catalina.bat
always find and run the setenv.bat
file to set the environment variables.
{$tomcat-folder}\bin\catalina.bat
//...rem Get standard environment variablesif not exist "%CATALINA_BASE%\bin\setenv.bat" goto checkSetenvHomecall "%CATALINA_BASE%\bin\setenv.bat"goto setenvDone:checkSetenvHomeif exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat":setenvDone//...
2.1 To set the environment variable on Windows, create asetenv.bat
manually, and put it into the${tomcat-folder}\bin
folder.
${tomcat-folder}\bin\setenv.bat
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m
P.S No double quotes, set JAVA_OPTS={value}.
2.2 Restart Tomcat, it will call the setenv.bat
file to set the environment variable automatically.
{$tomcat-folder}\bin\catalina.bat restart
0 0
- Tomcat – java.lang.OutOfMemoryError: PermGen space
- Tomcat – java.lang.OutOfMemoryError: PermGen space
- Tomcat – Java.Lang.OutOfMemoryError: PermGen Space
- Tomcat – Java.Lang.OutOfMemoryError: PermGen Space
- Tomcat – java.lang.OutOfMemoryError: PermGen space
- Tomcat – Java.Lang.OutOfMemoryError: PermGen Space
- Tomcat – Java.Lang.OutOfMemoryError: PermGen Space
- tomcat 提示 java.lang.OutOfMemoryError: PermGen space
- Tomcat-----------------java.lang.OutOfMemoryError: PermGen space
- tomcat:java.lang.outofmemoryerror permgen space
- tomcat java.lang.OutOfMemoryError: PermGen space
- tomcat 7 java.lang.OutOfMemoryError: PermGen space
- Tomcat java.lang.OutOfMemoryError: PermGen space解决
- MyEclipse tomcat java.lang.OutOfMemoryError: PermGen space
- tomcat部署 java.lang.OutOfMemoryError: PermGen space
- tomcat:Java.Lang.OutOfMemoryError: PermGen Space
- tomcat内存java.lang.OutOfMemoryError: PermGen space
- tomcat:java.lang.outofmemoryerror permgen space
- 将CVS仓库转换为git
- ios 数组 倒序
- 研大考研:2015考研政治主观题答题技巧
- Good Luck in CET-4 Everybody!
- c++ 11 新特性
- Tomcat – java.lang.OutOfMemoryError: PermGen space
- 同桌的妳 (2014)
- poj 3099 Go Go Gorelians (找树的直径确定树的中心)
- 陇南人流手术多少费用
- 新浪微博sso package or sign error
- 漫游kafka实战篇之搭建Kafka开发环境
- could not initialize proxy - no Session
- 跳出Java当中的一些循环,跳出双层FOR循环
- CAShapeLayer使用