Крашит сервер.
Серверу выделено 7гб ОЗУ из 8. Что делать?
Код:
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 16384 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
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
# placed in the first 32GB address space. The Java Heap base address is the
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2776), pid=10831, tid=19172
#
# JRE version: Java(TM) SE Runtime Environment (16.0.2+7) (build 16.0.2+7-67)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0.2+7-67, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f4c4b5da940): JavaThread "Thread-731" [_thread_new, id=19172, stack(0x00007f4c13618000,0x00007f4c13719000)]
Stack: [0x00007f4c13618000,0x00007f4c13719000], sp=0x00007f4c13717a30, free space=1022k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xdfdfa1] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1a1
V [libjvm.so+0xdfeb5d] VMError::report_and_die(Thread*, char const*, int, unsigned long, VMErrorType, char const*, __va_list_tag*)+0x2d
V [libjvm.so+0x5d8553] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*, ...)+0xc3
V [libjvm.so+0xbd4128] os::pd_commit_memory(char*, unsigned long, bool)+0xd8
V [libjvm.so+0xbccfcf] os::commit_memory(char*, unsigned long, bool)+0x1f
V [libjvm.so+0xcbaff7] StackOverflow::create_stack_guard_pages()+0x57
V [libjvm.so+0xd7c623] JavaThread::run()+0x23
V [libjvm.so+0xd812bd] Thread::call_run()+0xfd
V [libjvm.so+0xbd81b7] thread_native_entry(Thread*)+0xe7
Серверу выделено 7гб ОЗУ из 8. Что делать?