Memory Limit on Linux Dalibor Sojic
    Memory Limit on Linux Dalibor Sojic
        Memory Limit on Linux Synametrics Support

From: Dalibor Sojic
Date: 2/4/22 4:15 PM
Topic: Memory Limit on Linux
Type: General Discussions
Post a follow up

The VM has 2G RAM. Xeams WEB interface shows MB Allocated 932

I have found https://www.xeams.com/howmuchcaniallocate.htm

My run.sh file (also AppConfig.xml) already has Xmx2048m

#!/bin/bash
#This script all files found in the lib directory in CLASSPATH
CP=
for i in `ls lib/*.jar`
do
CP=$CP:$i
done
echo $CP
ulimit -n 8192
jre/bin/java -server -Xmx2048m -cp $CP -DLoggingConfigFile=logconfig.xml com.synametrics.xeams.ServerStarter &

Why the server has been ran with Xmx2048m and still show 932MB?

Top

From: Dalibor Sojic
Date: 2/4/22 4:37 PM
Topic: Memory Limit on Linux
Type: General Discussions
Post a follow up

I have increased VM to 4G and increased Xeams to 3.5G successfuly

Top

From: Synametrics Support
Date: 2/4/22 4:55 PM
Topic: Memory Limit on Linux
Type: General Discussions
Post a follow up

We usually do not recommend increasing this value beyond 2GB. In fact 1GB should be enough for most installations. When you assign a higher number for memory, the underlying JRE will delay the garbage collection process. As a result you will unnecessarily end up using more memory.

There are two components in Xeams related to memory:

  • The Xeams software, which will never grow beyond what you specify as max. So in your case it will be 3.5GB
  • The underlying JRE - this also needs some room to run.

If your total memory on the machine is 4GB, I'd recommend you lower the max memory to 2.5GB so that you have about 1.5 GB for JRE as well as other processes on the machine.

Top