Native memory allocation (mmap) failed to map

后端 未结 3 1043
[愿得一人]
[愿得一人] 2021-02-08 00:00

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:27

    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=

提交回复
热议问题