Score:0

Native memory allocation failed to map bytes for committing reserved memory

sd flag

I have multi spring boot applications running on the same server, each one in a separate Tomcat. One of those services crasher because of insufficient memory.

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 518520832 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap

/proc/meminfo:

MemTotal:       65808048 kB
MemFree:          364984 kB
MemAvailable:     383048 kB
Buffers:           11836 kB
Cached:          1913176 kB
SwapCached:            0 kB
Active:         60093684 kB
Inactive:         728764 kB
Active(anon):   59879520 kB
Inactive(anon):   510704 kB
Active(file):     214164 kB
Inactive(file):   218060 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:              1600 kB
Writeback:             0 kB
AnonPages:      58897944 kB
Mapped:            79776 kB
Shmem:           1492316 kB
Slab:             219980 kB
SReclaimable:      82888 kB
SUnreclaim:       137092 kB
KernelStack:       26832 kB
PageTables:       137576 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    32904024 kB
Committed_AS:   65608044 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      201664 kB
VmallocChunk:   34359351528 kB
Percpu:             2624 kB
HardwareCorrupted:     0 kB
AnonHugePages:  35917824 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      309184 kB
DirectMap2M:    34293760 kB
DirectMap1G:    32505856 kB

I can see that Active (anon) is very high is that normal ? could this be the reason? What's this mean?

Thank you

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.