Tomcat报 Exception in thread "http-bio-8080-exec-10" 错的解决方法
2017-02-16 09:29
453 查看
今天做“数据恢复”演练,就是把服务器端的代码和数据库 sql 脚本导入本地,进行备份。进行中,tomcat 出现如下错误:
问题出在 Tomcat 的内存溢出,上网查找了一些解决办法,下面将能够解决问题的正确方法归纳一下:
1、修改 TOMCAT_HOME/bin/catalina.bat 文件,检索“echo "Using CATALINA_BASE: $CATALINA_BASE”,在它上面添加“set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=1024M -XX:MaxPermSize=1024m”,如图:
2、重启 Tomcat 即可。
问题出在 Tomcat 的内存溢出,上网查找了一些解决办法,下面将能够解决问题的正确方法归纳一下:
1、修改 TOMCAT_HOME/bin/catalina.bat 文件,检索“echo "Using CATALINA_BASE: $CATALINA_BASE”,在它上面添加“set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=1024M -XX:MaxPermSize=1024m”,如图:
2、重启 Tomcat 即可。
相关文章推荐
- Exception in thread "http-bio-8080-exec-10" java.lang.OutOfMemoryError: PermGen space
- 启动tomcat时报错:Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- 解决Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space[解决方案]
- Exception in thread "http-bio-8080-exec-8" java.lang.OutOfMemoryError: PermGen space
- eclipse Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- [程序代写推荐]Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
- [找程序员代写推荐]Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-1" PermGen space
- eclipse运行项目,tomcat报错:Exception in thread :http-bio-8080-exec-4
- Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-7"内存溢出问题
- Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!
- Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!