Chinaunix首页 | 论坛 | 博客
  • 博客访问: 354921
  • 博文数量: 51
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1189
  • 用 户 组: 普通用户
  • 注册时间: 2014-02-14 15:23
文章分类
文章存档

2017年(4)

2016年(7)

2015年(9)

2014年(31)

我的朋友

分类: 系统运维

2014-05-14 13:57:13


java.lang.OutOfMemoryError: GC overhead limit exceeded解决方案

问题背景:

Tsung做压力测试,当tcp连接数达到165千时,服务器卡住,且出错信息为:

{ERROR} [2014-05-09 14:58:45,077]  : java.lang.OutOfMemoryError: GC overhead limit exceeded

Exception in thread "pool-1-thread-82" java.lang.OutOfMemoryError: GC overhead limit exceeded

Exception in thread "pool-1-thread-73" java.lang.OutOfMemoryError: GC overhead limit exceeded

解决方案:

增大JVM的内存量-Xmx,具体添加在run.sh中:

[root@tixaapp1 bin]# cat run.sh

#!/bin/sh

export BASEDIR=..

export CLASSPATH=$BASEDIR/conf

nohup java -Xmx4096m -server -classpath $CLASSPATH -Dbase.dir=$BASEDIR -jar $BASEDIR/lib/starter.jar  > $BASEDIR/logs/nohup.out &

tail -f $BASEDIR/logs/nohup.out

阅读(5247) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~