乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      通過設(shè)置Weblogic設(shè)置線程數(shù)提高系統(tǒng)并發(fā)

       liang1234_ 2019-04-06

      使用Weblogic版本:Weblogic 11g(10.3.6)

      設(shè)置Weblogic的線程數(shù)有兩種方法,

      第一種,通過啟動(dòng)參數(shù)設(shè)置:

      -Dweblogic.threadpool.MinPoolSize=1000 -Dweblogic.threadpool.MaxPoolSize=1000

      可以加在setDomainEnv.sh文件JAVA_OPTIONS下面;

      第二種,通過config.xml配置文件:

      1. <server>
      2.     <name>AdminServer</name>
      3.     <self-tuning-thread-pool-size-min>1000</self-tuning-thread-pool-size-min>
      4.     <self-tuning-thread-pool-size-max>1000</self-tuning-thread-pool-size-max>
      5. </server>

      Window環(huán)境下設(shè)置完應(yīng)該直接重新啟動(dòng)就可以生效,Linux下,有可能會(huì)出現(xiàn)以下錯(cuò)誤:

      1. Attempting to allocate 4G bytes
      2. There is insufficient native memory for the Java
      3. Runtime Environment to continue.
      4. Possible reasons:
      5.   The system is out of physical RAM or swap space
      6.   In 32 bit mode, the process size limit was hit
      7. Possible solutions:
      8.   Reduce memory load on the system
      9.   Increase physical memory or swap space
      10.   Check if swap backing store is full
      11.   Use 64 bit Java on a 64 bit OS
      12.   Decrease Java heap size (-Xmx/-Xms)
      13.   Decrease number of Java threads
      14.   Decrease Java thread stack sizes (-Xss)
      15.   Disable compressed references (-XXcompressedRefs=false)
      16. java.lang.OutOfMemoryError: Resource temporarily unavailable in tsStartJavaThread (lifecycle.c:1097).
      17. Attempting to allocate 4G bytes
      18. There is insufficient native memory for the Java
      19. Runtime Environment to continue.
      20. Possible reasons:
      21.   The system is out of physical RAM or swap space
      22.   In 32 bit mode, the process size limit was hit
      23. Possible solutions:
      24.   Reduce memory load on the system
      25.   Increase physical memory or swap space
      26.   Check if swap backing store is full
      27.   Use 64 bit Java on a 64 bit OS
      28.   Decrease Java heap size (-Xmx/-Xms)
      29.   Decrease number of Java threads
      30.   Decrease Java thread stack sizes (-Xss)
      31.   Disable compressed references (-XXcompressedRefs=false)

      出現(xiàn)這個(gè)原因的問題可能是因?yàn)長(zhǎng)inux下系統(tǒng)對(duì)用戶的默認(rèn)線程數(shù)做了限制,可以通過:

      ulimit -a

      命令進(jìn)行查看:

      1. core file size          (blocks, -c) 0
      2. data seg size           (kbytes, -d) unlimited
      3. scheduling priority             (-e) 0
      4. file size               (blocks, -f) unlimited
      5. pending signals                 (-i) 515223
      6. max locked memory       (kbytes, -l) 64
      7. max memory size         (kbytes, -m) unlimited
      8. open files                      (-n) 1024
      9. pipe size            (512 bytes, -p) 8
      10. POSIX message queues     (bytes, -q) 819200
      11. real-time priority              (-r) 0
      12. stack size              (kbytes, -s) 10240
      13. cpu time               (seconds, -t) unlimited
      14. max user processes              (-u) 1024
      15. virtual memory          (kbytes, -v) unlimited
      16. file locks                      (-x) unlimited

      其中

      max user processes              (-u) 1024

      表示當(dāng)前系統(tǒng)允許的最大線程數(shù),可以把此參數(shù)設(shè)大一些。

      ulimit -u 5000

      設(shè)置當(dāng)前系統(tǒng)用戶最大允許的線程數(shù),只對(duì)本次會(huì)話有效,如果想要永久生效,可以通過修改:

      1. $ cat /etc/security/limits.d/90-nproc.conf 
      2. # Default limit for number of user's processes to prevent
      3. # accidental fork bombs.
      4. # See rhbz #432903 for reasoning.
      5. *          soft    nproc    1024

      只需要將1024改成你需要的值即可,設(shè)置完需要重啟系統(tǒng)已生效。

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多