`
carrot
  • 浏览: 164380 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Tomcat OutOfMemory Error: PermGen Space

阅读更多

This FAQ applies to: 5.1

Using the Client Management service with the database system eXist Tomcat occasionally throws a OutOfMemory Error: PermGen Space.

To fix this the Tomcat Administrator has to change the JAVA_OPTS variable in the catalina start up script to the following

JAVA_OPTS="-server -Xms128M -Xmx256M -XX:MaxPermSize=256M"

If you are running tomcat as a Windows Service then you need to right click on the Apache Tomcat System Tray icon and click "Configure"

Click on the Java tab, and in the Java options box add the line -Xms128M -Xmx256M -XX:MaxPermSize=256M

分享到:
评论

相关推荐

    PermGen space

    #### 为何会出现PermGen Space的Out of Memory Error? 当应用程序加载了大量的类或者动态生成了很多类(例如通过字节码生成工具或预编译操作),PermGen Space可能会迅速耗尽。特别是在Web应用环境下,如部署Web...

    tomcat out of memory solution

    标题与描述中的关键词“Tomcat Out of Memory Solution”指向了在运行Tomcat服务器时遇到内存溢出错误(Out of Memory Error)的解决方法。在IT领域,尤其是Java应用服务器环境中,Tomcat作为一款广泛使用的开源轻量...

    Myeclipse下java.lang.OutOfMemoryError Java heap space的解决

    ### Myeclipse下java.lang.OutOfMemoryError: Java heap space的解决方案 在使用Myeclipse进行Java开发时,可能会遇到`java.lang.OutOfMemoryError: Java heap space`这个错误提示。这种异常通常发生在应用程序占用...

    tomcat溢出解决建议方案

    如果应用加载大量类或者使用SSH2等框架导致动态类生成,可能会超出默认大小,引发`Out of MemoryError: PermGen space`。 解决 PermGen Space溢出的方法: 1. **减少重复jar文件**:将相同的第三方jar移动到Tomcat...

    java.lang.OutOfMemoryError处理错误

    在Tomcat中java.lang.OutOfMemoryError: PermGen space异常处理: 1. PermGen space的全称是Permanent Generation space,是指内存的永久保存区域,这块内存主要是被JVM存放Class和Meta信息的。 2. Class在被Loader...

    Tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException)

    内存溢出(Out Of Memory Error,简称OOM)通常发生在程序尝试分配内存但系统无法提供足够空间时。在Java中,这主要与JVM(Java虚拟机)的内存模型有关,该模型包括堆(Heap)、栈(Stack)、方法区(Method Area)...

    完美解决java.lang.OutOfMemoryError处理错误的问题

    这个错误可能由多种原因引起,主要分为堆内存溢出(Heap Space)和非堆内存溢出(如 PermGen 或 Metaspace)。 1. **堆内存溢出**: - **原因**:这是最常见的`OutOfMemoryError`类型,当程序创建了太多对象,导致...

Global site tag (gtag.js) - Google Analytics