增加基于Windows安装程序的Tomcat PermGen Space [英] Increase Windows installer-based Tomcat PermGen Space

查看:232
本文介绍了增加基于Windows安装程序的Tomcat PermGen Space的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Tomcat中遇到了一些问题。我正在部署一个Grails应用程序,当我添加新功能时,我在堆栈跟踪文件中遇到了这个(可悲的是众所周知的)错误:

 导致:java.lang.OutOfMemoryError:PermGen空间
2014-01-13 19:28:35,753 [http-bio-8080-exec-26]错误StackTrace - 完整堆栈跟踪:
org .codehaus.groovy.runtime.InvokerInvocationException:java.lang.OutOfMemoryError:PermGen的空间
。在gsp_liquidaciones_liquidacionDeComplejolist_gsp $ _run_closure2.doCall(gsp_liquidaciones_liquidacionDeComplejolist_gsp.groovy:84)
。在gsp_liquidaciones_liquidacionDeComplejolist_gsp.run(gsp_liquidaciones_liquidacionDeComplejolist_gsp.groovy:105)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)
...

我有一个基于Windows安装程序的tomcat安装,我也没有catalina.bat文件。谷歌搜索多页建议修改此文件(catalina.bat)或注册JAVA_OPTS变量,但没有任何工作。那么,我必须在哪里指定这个参数?

SET JAVA_OPTS = - Dfile.encoding = UTF-8 -server -Xms512m - Xmx1024m -XX:NewSize = 256m -XX:MaxNewSize = 256m -XX:PermSize = 256m -XX:MaxPermSize = 256m -XX:+ DisableExplicitGC



我曾尝试通过Apache Tomcat 7属性窗口修改Java选项,但在修改之后,服务器无法启动。



我的电脑安装了4Gb RAM。



预先感谢。

解决方案

以下系统规格:




  • Windows 7 64位

  • 安装了4 GB内存
  • i7处理器
  • Java™SE运行时环境(build 1.6.0_25-b06)


    可接受行为的Tomcat 7 Java属性可能是:


    I'm having some problems with Tomcat. I'm deploying a Grails application and as I were adding new features I got this (sadly well known) error in the stacktrace file:

    Caused by: java.lang.OutOfMemoryError: PermGen space
    2014-01-13 19:28:35,753 [http-bio-8080-exec-26] ERROR StackTrace  - Full Stack Trace:
    org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.OutOfMemoryError: PermGen space
        at gsp_liquidaciones_liquidacionDeComplejolist_gsp$_run_closure2.doCall(gsp_liquidaciones_liquidacionDeComplejolist_gsp.groovy:84)
        at gsp_liquidaciones_liquidacionDeComplejolist_gsp.run(gsp_liquidaciones_liquidacionDeComplejolist_gsp.groovy:105)
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    ...
    

    I have an Windows installer-based tomcat installation and I don't have an catalina.bat file also. Googling many pages suggest to modify this file (catalina.bat) or register JAVA_OPTS variable, but nothing works. So, where do I have to specify this parameters?:

    SET JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

    I have tried to modify the Java Options through Apache Tomcat 7 Properties window but after the modifications the server can't start.

    My computer has 4Gb RAM installed.

    Thanks in advance.

    解决方案

    For the following system specifications:

    • Windows 7 64-bit
    • 4 GB installed RAM
    • Intel Core i7 processor
    • Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

    The Tomcat 7 Java properties for an acceptable behavior MIGHT be:

    这篇关于增加基于Windows安装程序的Tomcat PermGen Space的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆