Hi All,
I'm getting below error in the server hybris server start.
Native memory allocation (mmap) failed to map 5368709120 bytes for Failed to commit area from 0x0000000580000000 to 0x00000006c0000000 of length 5368709120.
I tried multiple ways to set xss, xms,xmx arguments for tomcat.javaoptions and I didn't get the solution. I'm using sap 2005 version, jdk11.0.14 version.
After analysis from log file observed the below recommendations.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 5368709120 bytes for Failed to commit area from 0x0000000580000000 to 0x00000006c0000000 of length 5368709120.
# 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=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (./open/src/hotspot/os/windows/os_windows.cpp:3284), pid=34436, tid=9860
#
# JRE version: (11.0.14+8) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.14+8-LTS-263, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
--------------- S U M M A R Y ------------
Command Line: --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=jdk.management.agent/jdk.internal.agent=ALL-UNNAMED -Djava.locale.providers=COMPAT,CLDR -Xmx2G -ea -Dcatalina.base=.. -Dcatalina.home=.. -Dfile.encoding=UTF-8 -Djava.util.logging.config.file=jdk_logging.properties -Djava.io.tmpdir=C:\2005_new\hybris\temp\hybris -Duseconfig= -DHYBRIS_BIN_DIR=c:\2005_new\hybris\bin -DHYBRIS_CONFIG_DIR=c:\2005_new\hybris\config -DHYBRIS_DATA_DIR=c:\2005_new\hybris\data -DHYBRIS_LOG_DIR=c:\2005_new\hybris\log -DHYBRIS_TEMP_DIR=c:\2005_new\hybris\temp\hybris -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n -Xmx10G -Xms5G -Ddeployed.server.type=tomcat -Duser.language=en -Djava.library.path=../lib -Dwrapper.key=ZaAtsPjhYraYKC_3WlmxEdzW96lHlBQ7 -Dwrapper.port=32000 -Dwrapper.pid=8572 -Dwrapper.version=3.5.29-pro -Dwrapper.native_library=wrapper -Dwrapper.arch=x86 -Dwrapper.cpu.timeout=0 -Dwrapper.jvmid=2 -Dwrapper.lang.domain=wrapper -Dwrapper.lang.folder=../lang org.tanukisoftware.wrapper.WrapperSimpleApp org.apache.catalina.startup.Bootstrap start
Host: Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz, 8 cores, 15G, Windows 7 , 64 bit Build 7601 (6.1.7601.24117)
Time: Sun Jan 1 20:29:41 2023 South Africa Standard Time elapsed time: 0.603050 seconds (0d 0h 0m 0s)