Apigee SSO Out of memory error

Hi all

Our system : Apigee on-premise 4.51 and SAML SSO , new Edge UI , Redhat Enterprise 7.9

One of Apigee node which hosted apigee-sso components and new edge UI to integrate with SSO have out of memory error below.

May I know how to solve the apige-sso starting up OOM error ? Thank you

Current memory in the VM
#free -h
total used free shared buff/cache available
Mem: 7.6G 7.2G 187M 6.4M 288M 225M
Swap: 0B 0B 0B

Error in the /tmp/hsperfdata_apigee/

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 358088704 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=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2795), pid=3779, tid=0x00007f8736686700

JRE version: (8.0_332-b09) (build )

Java VM: OpenJDK 64-Bit Server VM (25.332-b09 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again