经常遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法
来源:互联网 发布:元数据是关于数据的 编辑:程序博客网 时间:2024/05/02 02:41
简单分享一下,类似问题的解决方法
刚才在某机器上上xxx用户下压测时遇到这个问题,连xxx都进不去了
说明xxx用户下无法创建跟多的线程了(当然root用户没这个问题)
系统能够创建的最大线程数:(MaxProcessMemory - JVMMemory – 系统内存) / (ThreadStackSize) = Number of threads
有两种方式:
减少xxx下的ThreadStackSize
增加xxx下的nproc数量
修改
[lsmpusr@wxlab28bin]$ ulimit -a
core filesize (blocks, -c) 0
data segsize (kbytes, -d)unlimited
schedulingpriority (-e) 0
filesize (blocks, -f) unlimited
pendingsignals (-i) 256636
max lockedmemory (kbytes, -l) 64
max memorysize (kbytes, -m) unlimited
openfiles (-n) 65536
pipesize (512bytes, -p) 8
POSIX messagequeues (bytes, -q) 819200
real-timepriority (-r) 0
stacksize (kbytes, -s) 10240-----可以减小这个,建议在jvm –xss中减少
cputime (seconds, -t) unlimited
max userprocesses (-u) 1024-----可以增加这个到32000
virtualmemory (kbytes, -v)unlimited
filelocks (-x) unlimited
修改/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
xxx soft nproc 32000
xxx hard nproc 32000
xxx soft stack 1024
xxx hard stack 1024
- 经常遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法
- 经常遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法
- 访问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.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
- 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
- APACHE配置php简单方法
- 各种机型的媒体查询
- 自定义实现带文字标题的瀑布流效果
- windows API 创建系统托盘图标
- 独立性检验
- 经常遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法
- 通用权限设计(springmvc + mybatis + ligerui)
- Linux 线程同步的三种方法
- c++ delete和new要对应 要不然会出错
- 配置apache支持SSI
- poj2253 Frogger(最短路变形)
- 解决CPU/ABI: No system images installed for this target.
- 判断手机和pc端的不同,事件也不同
- 上海交大Hacking Weedend Day2延续—各队小鲜肉一手资料新鲜出炉啦