Native memory allocation (mmap) failed to map

后端 未结 3 660
后悔当初
后悔当初 2021-02-08 00:03

I have started facing Native memory allocation issue. I guess could be related with the -Xmx and -Xms settings. What is the recommended way to set this values ?

Currentl

3条回答
  •  礼貌的吻别
    2021-02-08 00:32

    Possible solutions:

    • Reduce memory load on the system
    • Increase physical memory or swap space
    • Check if swap backing store is full
    • Use 64 bit Java on a 64 bit OS
    • Decrease Java heap size (-Xmx/-Xms)
    • Decrease number of Java threads
    • Decrease Java thread stack sizes (-Xss)
    • Set larger code cache with -XX:ReservedCodeCacheSize=

提交回复
热议问题