weblogic启动报错|unable to create new native threadjava

问题描述:
    <2017-11-29 上午10时20分01秒 CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason:
 java.lang.OutOfMemoryError: unable to create new native threadjava.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at weblogic.work.RequestManager.startThread(RequestManager.java:358)
    at weblogic.work.RequestManager.createThreadAndExecute(RequestManager.java:342)
    at weblogic.work.RequestManager.createIdleThreads(RequestManager.java:1030)
    at weblogic.work.RequestManager.incrPoolSize(RequestManager.java:1023)
    at weblogic.work.RequestManager$Factory.<clinit>(RequestManager.java:177)
weblogic创建过多线程,不能创建线程默认1024的限制


分析原因:
weblogic属于非root账户存在资源限制
max_thread 1024   
open_file  
...

解决:
vi /etc/security/limits.d/90-nproc.conf
  *          soft    nproc    1024            #修改大些
   root      soft    nproc    unlimite

cat /etc/security/limits.d/90-nproc.conf
  *          soft    nproc    65535   #max thread
  *          hard    nofile   65535   #max openfile
  root      soft    nproc    unlimite

 总结对linux的性能优化:

  优化网络端口复用

  优化对线程、打开文件的限制

posted @ 2017-11-30 22:51  mvpbang  阅读(1628)  评论(0编辑  收藏  举报