commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Delle Grazie (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DAEMON-334) Specify a maximum limit for automatic restarts
Date Wed, 03 Jun 2015 21:48:38 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brett Delle Grazie updated DAEMON-334:
--------------------------------------
    Attachment: 01-control-automatic-restarts.patch

Sample patch to provide a control around automatic restarts due to daemon failure (fatal error
kind)

> Specify a maximum limit for automatic restarts
> ----------------------------------------------
>
>                 Key: DAEMON-334
>                 URL: https://issues.apache.org/jira/browse/DAEMON-334
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Jsvc
>    Affects Versions: 1.0.16
>         Environment: Unix / Linux systems
>            Reporter: Brett Delle Grazie
>            Priority: Minor
>              Labels: newbie, patch
>         Attachments: 01-control-automatic-restarts.patch
>
>
> Our particular use-case requires that JSVC not automatically restart the daemon if the
child process throws a fatal error (e.g. OutOfMemoryError) or similarly the JVM aborts (bug
etc.).
> In any case the attached patch goes slightly further and provides a '-restarts' option
which can be set to:
> -1 (infinite, also the default)
> 0 (one-shot mode) up to (MAX_INT-1) fixed restart count and specific to the platform.
> The patch is just an example of how it could be done.
> Note that the intention here is to limit the restart count for successive fatal errors
- not for controlled restarts initiated by the administrator via a signal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message