zoukankan      html  css  js  c++  java
  • 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的性能优化:

      优化网络端口复用

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

  • 相关阅读:
    多态
    java8的十大新特性
    Floyd最短路径算法
    ES6(六)函数扩展
    ES6(五)数组扩展
    ES6(四)数值扩展
    ES6(一)解构赋值
    store封装
    ipad方案
    pyinstaller编译打包为pyd
  • 原文地址:https://www.cnblogs.com/xiaochina/p/7920688.html
Copyright © 2011-2022 走看看