JAVA学习网首页 把生活查询网加入收藏 把JAVA学习网设为首页 联系方式
    Hi,JAVA学习
JAVA基础 设计模式 数据库 JavaBeans J2EE JavaDelphi 用户界面 综合文章  
Root cause of ServletException java.lang.OutOfMemoryError解决方法
时间:22/04/2007
作者:网络
来源:网络
小提示点这里把文章加入您的收藏夹,方便下次查看
设置文章字体大小:[ ]

问题描述:下载电子报表,当电子报表过大发生"Root cause of
ServletException  java.lang.OutOfMemoryError"
  问题状态:已解决
  解决方法:调整bea/weblogic/common中CommEnv中参数
       :sun
if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms256m -Xmx512m -XX:MaxPermSize=256m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:sun_prod_mode
set JAVA_VM=-server
set MEM_ARGS=-Xms256m -Xmx512m -XX:MaxPermSize=256m
goto continue

即解决此问题

reference:

MaxPermSize:
The permanent space is memory allocated outside the regular
heap (i.e. in addition to the -Xmx setting), so it is important
 to ensure there is enough physical RAM on the machine.
The permanent space is used to primarily store classes and
objects created for reflection support (methods etc.). If
you have a large number of classes in a Java application,
an OOM can occur if the PermSize is too small.

From one of your previous posts, you seem to have 8 applications,
 so yes, setting the PermSize and/or MaxPermSize could help.
Also, 256MB sounds small for a server with 8 applications.
The OOM could simply indicate that your heap is too small.
Hope this helps,
Arunabh


上一篇:Java下的Framework编写(3)--cglib的应用

下一篇:Root cause of ServletException java.lang.OutOfMemoryError解决方法

  • 七条对于中国大学软件专业同学一些建议 作者: 梁振,严诺
  • LightweightUIFramework(有產生圓形Button的源碼)
  • J2EE建议的学习路线!
  • 公司知识库管理的制度与推行
  • SOA与中间件、基础件的发展
  • Xdoclet是什么?
  • 格式化输出数字
  • jdk1.5之五 —— import static members
  • readAppfuse-3-权限认证续
  • [新闻]比尔·盖茨被激怒 微软肩负起唱衰Google的使命
  • jboss 中JSP或SERVLET调用EJB问题
  • Eclipse Release Build: 3.1正式发布! ——平台新特性(二)
  • Eclipse实用快捷键大全
  • 学习Java的笔记(3)
  • JSP中的page,request,session,application
  • Hibernate VS iBATIS
  • Java学习笔记(一)
  • 在已有的视图的弹出菜单上新增菜单项
  • 返回】 【顶部】 【关闭
    Copyright © 2005-2010 www.594k.com All Rights Reserved.
    版权所有:JAVA学习网 备案序号:皖ICP备06004238号