Configure automated host or servlet restart

Restarting servlets cleans up memory artifacts created during uptime. As Service Manager is running as a cluster of servlets, servlets can be restarted separately without causing system unavailability. In horizontally scaled environments, even the entire hosts may be shut down and rebooted.

To configure automated restart of Service Manager, add this line in sm.cfg file on each host:

sm -restart:<minutes> 

Restart is by default constraint to Service Manager processes on localhost only. The -host, -group, and -pid parameters can be used to address processes in the entire Service Manager system. For more information, see Managing multiple servlet container processes.

Use the -restartRandMax parameter to randomize the restart schedule to avoid all servlets from restarting at the same time, and use -restartGraceInterval to notify users about their session on this servlet to be terminated, so they can save their work.

Related topics

Service Manager maintenance tasks

Configuration tasks

Parameter: restart

Operation tasks

Operation tasks