Modify interval logging to collect memory size per process

Document ID : KB000012928
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

On linux, the fresh install of ServiceDesk 12.9 has the interval logging producing the system memory into $NX_ROOT/log/memory_usage_hostname.0

To troubleshoot memory problem for a specific process, we may prefer to have the memory size of a process, instead of the system memory information.

 

Question:

On linux, the fresh install of ServiceDesk 12.9 has the interval logging producing the output of vmstat into $NX_ROOT/log/memory_usage_hostname.0

How to replace the content of $NX_ROOT/log/memory_usage_hostname.0 by the output of "ps -aux" to display the memory size per process

 

 

Environment:
Linux Service Desk 12.9Oracle 11
Answer:

As Oracle is the database for ServiceDesk on linux, connect to mdb as mdbadmin

- execute

update rem_ref set PCEXEC_STR='ps', EXEC_STR='-aux' where id=9010;

- restart Service Desk

- verify the content of $NX_ROOT/log/memory_usage_hostname.0

-> We should have the output of "ps -aux" , the memory information per process

interval_linux.jpg

 

 

Additional Information:

To restore the interval logging behavior as default
connect to mdb as mdbadmin
execute
update rem_ref set PCEXEC_STR='vmstat', EXEC_STR='' where ID=9010;