Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..
593 views

Enable Memory monitoring in SM9.20

Experts,

We are having HP SM v9.20 build 021 in our environment, running on win 2k8 server R2.
We dont have any java heap memory parameters enabled in our sm.ini so far.

Recently we have started seeing the users are getting, Server running low on memory error when they login to win client. In the sm.log, I could find the below entry

  RAD E Server running low on memory, close some application tabs and try again
  RAD E Server running low on memory, relogin to the system

I have noticed that for SM9.20 version, there is a patch available for this issue, which I am not sure about.

https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM1414575

I am thinking to try to set heap memory parameters and see if it resolves the issue

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

I tried to increase the min and max heap to 512 and 1024 respectively. When I set to these values, SM services failed to start. If i use the above mentioned configuration it starts correctly.

Now I would like to enable memory monitoring parameter. Included memorypollinterval:300 in the sm.ini
and for debug logs , added log4jdebug:com.hp.ov.sm.common.oom.LowMemoryHandler in the sm.ini

When I do the application restart, i always see the entry that " memory monitoring is disabled " . Does this mean that the system parameter is not set ?


  6684(   156) 12/22/2015 15:33:19  RTE I smservice: start service event received for service sm920service
  6684(   156) 12/22/2015 15:33:19  RTE I smservice: starting process sm
  6028(  7860) 12/22/2015 15:33:19  RTE I Using "utalloc" memory manager
  6028(  7860) 12/22/2015 15:33:19  RTE I Command line: sm
  6028(  7860) 12/22/2015 15:33:19  RTE I Process sm 9.20.021 (021) System: 12670 (0x61E13C00) on PC (x86 32-bit) running Windows Server 2003 SP2 (5.2 Build 3790) from myhpsmserver.domain.com (x.x.x.x)
  6028(  7860) 12/22/2015 15:33:19  RTE I Creating resources for system '12670' with key 0x61E13C00
  6028(  7860) 12/22/2015 15:33:19  RTE I Created shared memory of size 96000000 using key 0x61E13C00 and attached to it at address 0x20000000
  6028(  7860) 12/22/2015 15:33:19  RTE I JVM successfully created
  6028(  7860) 12/22/2015 15:33:19 JRTE I Java version: 1.6.0_20
  6028(  7860) 12/22/2015 15:33:19 JRTE I Memory monitoring is disabled

Please guide to enable the memory monitoring and enable the debug logs.

Thx

I am Listening..
0 Likes
8 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Enable Memory monitoring in SM9.20

We have enough memory in our servers. We have about 20 servlet running. Memory is about 72G

Separated the integration listeners from the loadbalanccer.

I am Listening..
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enable Memory monitoring in SM9.20

Hi, Brav

 

Please attach the latest sm.ini and sm.cfg for review.

 

Thanks

Desmond

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Enable Memory monitoring in SM9.20

PFA wordoc

I am Listening..
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enable Memory monitoring in SM9.20

Hi,

Since 920 is quite a old version that i have no system to test, I tried the same parameters in 9.21.700 with patch 9. The memory monitoring is working as expected. Attach the log in 9.21.

So it could be 9.20 does not support one or some parameters for memory monitor. If you have 920 help server installed, you need to check in it.

Thanks

Desmond

Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Enable Memory monitoring in SM9.20

Could you tell me how did you set the system parameter.
Did you just put the parameter in the ini alone or is it need to be mentioned along with each of the ports ?

I enabled the memorypollinterval parameter on one of the debug port and found that , it started writing memorty monitoring entries. But if I just mention in the ini alone, it doesnt do anything .

I am Listening..
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enable Memory monitoring in SM9.20

If i just add memorypollinterval:0 in sm.ini, the memory monitor is disabled. According to the help server,

Parameter

memorypollinterval

Description

This parameter defines the frequency at which the memory heap is monitored. The memory monitoring thread checks for available and maximum memory every n seconds, where n is the value specified. If you specify zero (0), memory monitoring is disabled.

 

Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Enable Memory monitoring in SM9.20

Thank you fro the reply.

 

Could you tell me one more thing, what is the right setting of the heap memory

 

I have used

 

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

I am Listening..
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enable Memory monitoring in SM9.20

JVMOption0:-Xms384m
JVMOption1:-Xmx512m

it is good enough for SM.

In terms of why SM can not be started up as setting to 1024M, it is because the memory area for JVM heap must be sequential, if the system cannot allocate such a memory area, initialization of JVM heap will fail. Anyway, 1024M JVM heap is not necessary.

Thanks

Desmond

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.