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的性能優化:

  優化網絡端口復用

  優化對線程、打開文件的限制


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM