java.lang.OutOfMemoryError: unable to create new native thread
来源:互联网 发布:glpi windows 编辑:程序博客网 时间:2024/05/21 04:44
参考这个: http://www.linuxidc.com/Linux/2014-03/97857.htm
和这个: http://dacoolbaby.iteye.com/blog/1924576
java.lang.OutOfMemoryError: unable to create new native thread
此类问题:
新机器是没有设置创建线程数量造成的,默认是1024,需要改系统配置文件,设大才行。
查看生效方式是ulimit -an
max user processes (-u) 10240 这一项
默认是1024, 网上的大部分直接改/etc.profie, 对于个人用户而言,最好是在.bashrc中添加: ulimit -u 10240 即可。
这个值根据需要设,最好不要设太大,我开始设成81920,出其他问题了。。。。 另外可以将JVM的内存设小点,参考http://dacoolbaby.iteye.com/blog/1924576
改动是可以在当前用户的 .bashrc中增加一句: ulimit -u 20480
注意,后面在source .bashrc的的时候要以root 方式,[root@mu02 liuqiang2]# source .bashrc
这样才能没有权限问题。
退出后再进去看就修改了。
0 0
- 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
- 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: 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: 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: 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: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- Gpgraph的使用与配置--第二篇
- Android数据库高手秘籍(三)——使用LitePal升级表
- 21、Merge Two Sorted Lists
- Spring MVC学习之二:注解介绍
- ie6下多个a标签折行bug
- java.lang.OutOfMemoryError: unable to create new native thread
- Jwchat 的安装和配置、Service unavailable、Authorization failed问题汇总
- android 软键盘弹出,界面上移
- mysql 获取所有表和字段
- android开发之移动端屏幕适配随谈
- javaFX8初探(构建3D简单应用)
- MVC4.0异步加载文件
- Android数据库高手秘籍(四)——使用LitePal建立表关联
- Spring MVC学习之三:处理方法返回值的可选类型