RHEL 6.2 Error: Cannot create GC thread. Out of system resources.
2012-09-20 18:33
507 查看
RHEL6.2系统,多个tomcat运行,改一个为普通用户启动,报错:
Error: Cannot create GC thread. Out of system resources.
问题分析:
6.2系统的max user processes 只有1024 ,# ulimit -u 查看,而AS5是unlimited,
在/etc/security/下一看,rhel6多出来一个limits.d目录(AS5没有),下面有个文件:90-nproc.config
参考网友博文:http://blog.chinaunix.net/uid-1757778-id-3219481.html
解决办法:
1、修改# vim /etc/security/limits.d/90-nproc.conf 注释掉 * soft nproc 1024 这个估计要重启生效,没找到命令设置生效。
2、# vim /etc/profile 在最后加上ulimit -u unlimited 退出登录再连接就ok了。
不方便重启的话,建议执行上面两步。
Error: Cannot create GC thread. Out of system resources.
问题分析:
6.2系统的max user processes 只有1024 ,# ulimit -u 查看,而AS5是unlimited,
在/etc/security/下一看,rhel6多出来一个limits.d目录(AS5没有),下面有个文件:90-nproc.config
参考网友博文:http://blog.chinaunix.net/uid-1757778-id-3219481.html
解决办法:
1、修改# vim /etc/security/limits.d/90-nproc.conf 注释掉 * soft nproc 1024 这个估计要重启生效,没找到命令设置生效。
2、# vim /etc/profile 在最后加上ulimit -u unlimited 退出登录再连接就ok了。
不方便重启的话,建议执行上面两步。
相关文章推荐
- OutOfMemoryError: Cannot create GC thread. Out of system resources
- Dubbo之——线程模型(Linux 用户线程数限制导致的 java.lang.OutOfMemoryError: unable to create new native thread 异常)
- 关于“java.lang.OutOfMemoryError : unable to create new native Thread”的报错问题
- java.lang.OutOfMemoryError: unable to create new native thread
- 异常:java.lang.OutOfMemoryError:unbale to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread解决方法
- Java中OutOfMemoryError与unable to create new native thread(JVM创建大量线程)的关系
- 解决java.lang.OutOfMemoryError: unable to create new native thread问题
- 解决 – java.lang.OutOfMemoryError: unable to create new native thread
- java.jse-异常-解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 问题:java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: Unable to create new native thread
- Exception in thread "Thread-0" java.lang.OutOfMemoryError: GC overhead limit exceeded 解决方法
- java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- spark大批量读取Hbase时出现java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread
- 解决 – java.lang.OutOfMemoryError: unable to create new native thread
- Java中OutOfMemoryError与unable to create new native thread(JVM创建大量线程)的关系