Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Overview and System Design Guide


8.1.1 Restarting abnormally ended processes

When a process that provides a function in JP1/IM - Manager ends abnormally, JP1/IM - Manager can attempt to recover the process.

JP1/IM processes are controlled by the process management, which detects when a process terminates abnormally and automatically restarts it. This allows JP1/IM - Manager to recover automatically from some temporary errors.

Process restarting is not enabled at installation. To enable process restarting, enable the restart parameter in the extended startup process definition file (jp1co_service.conf).

The operation of process restarting is described below. This example is based on settings for the jcamain process (automatic action service) being made in the extended startup process definition file. For details about the definition file, see Extended startup process definition file (jp1co_service.conf) in Chapter 2. Definition Files in the manual JP1/Integrated Management 2 - Manager Command, Definition File and API Reference.

Setting example

jcamain||1|3|3|3600|

Explanation

Process name: jcamain

Restart: 1 (1: Restart; 0: Do not restart (default))

Retry count: 3 (default)

Retry interval: 3 seconds (default)

Retry count reset time: 3,600 seconds (default)

In this definition, only the restart parameter is changed. There is typically no need to change the other values as the defaults will be suitable in most situations. With these settings, process restarting operates as follows:

Figure 8‒1: Behavior when a process ends abnormally

[Figure]

In this example, if the process does not end abnormally within 3,600 seconds of restarting as specified by the retry count reset time, the retry count is reset. On the other hand, if the process terminates within 3,600 seconds of restarting, the retry count is incremented by one. No more attempts are made to restart the process after the retry count reaches the specified number.

In Windows, a Windows dialog box for reporting the error to Microsoft appears when a process results in an application error. Because these dialog boxes wait for user input, they can prevent processes from restarting automatically. For this reason, you must disable error reporting using dialog boxes.

Important

If you are using JP1/IM - Manager in a cluster system, do not set up process management to restart abnormally ended processes because the error in the JP1/IM - Manager process might also affect the function that restarts processes. To ensure a more reliable restart, restart JP1/IM - Manager processes under the control of the clustering software.