Show TOC

Setting Service Stop TimeoutLocate this document in the navigation structure

Use

Use this procedure to change the maximum time, which the Service Manager waits for each service to stop when the cluster node is shutting down.

If this timeout has elapsed and the service has not managed to stop, the behavior of the Service Manager depends on the value of the ServiceTimeoutAction property. The possible values are:

  • wait

    The Service Manager blocks the stop operation and performs thread dumps every 5 minutes.

  • halt

    The Service Manager calls critical shutdown and halts the server process.

  • ignore

    The Service Manager continues with the cluster node shutdown. A notification for each timed-out service is logged in the log files.

    Recommendation

    The default value depends on the template. We recommend for production systems to set the value to halt , and for development and test purposes to set the value to wait .

    The default service stop timeout is 60 seconds. In case of problems during AS Java shutdown, check the log files for timed-out services during shutdown. In such cases, we recommend that you analyze the problematic services and, if necessary, increase the service stop timeout.

Procedure
  1. Start the Config Tool by double-clicking the configtool script file from <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.

  2. Choose cluster- Start of the navigation path data Next navigation step template Next navigation step instance - <n> Next navigation step managers Next navigation step ServiceManager End of the navigation path.

  3. From the list of properties, select ServiceStopTimeout .

  4. In the Custom value field, set the required timeout in seconds.

  5. To apply the new value, choose Set Custom Value .

  6. To save the changes, choose Apply changes .

  7. For the changes to take effect, restart the cluster.

You can use the procedure analogically for setting the value of ServiceTimeoutAction .