Restart servlets

Servlets may be restarted on demand or at a scheduled interval without a restart of the entire Service Manager instance. This releases all resources such as memory and locks allocated by sessions of this servlet and creates a fresh servlet.

Command line:

sm -restart [-group:<group>][-host:<host>][-pid:<pid>]

This means an existing servlet is shut down and another one with the same configuration is started again. In order to prevent multiple servlets from being restarted at the same time, the restart time can be randomized using the -restartRandMax parameter.

All sessions working on an existing servlet are terminated and will not be automatically restored. Therefore, there is the risk of losing session data not yet stored in the database. For user sessions, a warning message can therefore be issued minutes before the scheduled restart by using the -restartGraceInterval parameter.

Related topics

Scheduled restart of Service Manager processes

Parameter: restart

Parameter: group

Parameter: host

Parameter: restartRandMax

Parameter: restartGraceInterval

Restart stopped background processes automatically