kavitha.kanagav Absent Member.
Absent Member.
3782 views

Often getting server running low on memory error

Jump to solution
Hi,

very often getting server running low on memory

increased the JVM memory also now our sm.cfg configuration is:

sm -loadBalancer -httpPort:13080 -sslConnector:1 -httpsPort:13081 -log:../logs/smlb.log -ssl:1 -alertlog:../logs/smlb.alert.log -JVMOption0:-Xms1024m -JVMOption1:-Xmx1024m -JVMOption2:PermSize=128m -JVMOption3:MaxPermSize=128m

sm -que:ir

sm -httpPort:13082 -sslConnector:0 -log:../logs/sm13082.log -alertlog:../logs/sm13082.alert.log -JVMOption0:-Xms1536m -JVMOption1:-Xmx1536m -JVMOption2:PermSize=128m -JVMOption3:MaxPermSize=128m

sm -httpPort:13083 -sslConnector:1 -httpsPort:13443 -ssl:1 -log:../logs/sm13083.log -alertlog:../logs/sm13083.alert.log -JVMOption0:-Xms1536m -JVMOption1:-Xmx1536m -JVMOption2:PermSize=128m -JVMOption3:MaxPermSize=128m


sm system.start

# initialize sc smtp client
taskkill /IM scsmtp.exe /F
scsmtp.exe

find the attachment of load balancer status
provide a solution for this error
0 Likes
1 Solution

Accepted Solutions
Mukesh G Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi Kavitha,

Attach your sm.ini file al.so

Regards,

View solution in original post

19 Replies
Mukesh G Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi Kavitha,

Attach your sm.ini file al.so

Regards,

View solution in original post

kavitha.kanagav Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
please find the attachment of sm.ini
0 Likes
gamini
Visitor.

Re: Often getting server running low on memory error

Jump to solution
Hi Kavitha,

What is the version of your SM server?

Regards
Gamini
gamini
Visitor.

Re: Often getting server running low on memory error

Jump to solution
What is the version of your SM server

Regards
Gamini
Highlighted
BeginnerHPSM Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi,

Please check after increasing the shared memory.
kavitha.kanagav Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
SM7.11 is the server version
0 Likes
gamini
Visitor.

Re: Often getting server running low on memory error

Jump to solution
If your build is not .281 ask hp support for this build which resolves this low memory issue.

Before you load into production take sufficient time to test the same patch on your development environment.

In our environment the same patch resolved the issues but moreover it is independent of the environment.

We may get some starange issues based on the environment. Hope it helpw 🙂
MKB_1 Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi,

Can you share your system configuration like memory and CPU?

Points to know while setting up JVM...

1. For garbage collection there should be a difference between Xms and Xmx
2. You should set the Xms and Xmx for all process/Servlets (you didn't set for sm system.start process and it may also cause you stop the SM application functionality due to out of memory).
3. Configuring the Xms and Xmx in sm.ini is always best practice than configuring in each servlet (if require configure it).


Can you change your configuration like below...
1. Update the Sm.ini File

in sm.ini file add the below content

JVMOption0:-Xms384m
JVMOption1:-Xmx512m
JVMOption2:-Xrs
JVMOption3:-XX:+HeapDumpOnOutOfMemoryError

2. Update the sm.cfg like below.. (removed the JVM Option)..

sm -loadBalancer -httpPort:13080 -sslConnector:1 -httpsPort:13081 -log:../logs/smlb.log -ssl:1 -alertlog:../logs/smlb.alert.log

sm -que:ir

sm -httpPort:13082 -httpsPort:13442 -sslConnector:0 -log:../logs/sm13082.log -alertlog:../logs/sm13082.alert.log

sm -httpPort:13083 -sslConnector:1 -httpsPort:13443 -ssl:1 -log:../logs/sm13083.log -alertlog:../logs/sm13083.alert.log

sm system.start


Points are always appreciated...
kavitha.kanagav Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi MKB

Please find the attachment of cpu and memory info
0 Likes
MKB_1 Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Thanks for the attachment.
As per your system configuration you have only 8 GB of RAM.

By default OS would take min of 2 GB and max of 4 GB (Per your system it is occuping 3 GB of RAM) depends on the application running on to this system.

In your SM.CFG you have requested to allocate 4096 GB of RAM for the Servlets, added to the above the background process (system.start) will take some memory which may leads to OutofMemory error or Low Memory error.

So i would adivce you to give the Xms and Xmx memory as given in my previous post which would solve the issue.

Summary:- Since you have given memory settings which is higher than your available memory you are receiving low memory or out of memory error.

Points are always appreciated.
kavitha.kanagav Absent Member.
Absent Member.

Re: Often getting server running low on memory error

Jump to solution
Hi
iam not clear with the memory allocation since this configuration is done by HP team. please let me know how the memory is shared for sm.cfg
and how you are telling by default 3gb of memory is occupied
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.