[crac] RFR: Add Checkpoint timeout
KIRIYAMA Takuya
duke at openjdk.org
Fri Dec 15 05:05:06 UTC 2023
On Fri, 8 Dec 2023 09:14:19 GMT, KIRIYAMA Takuya <duke at openjdk.org> wrote:
> Java process sometimes hangs when checkpoint for some reasons.
> For example, this problems occurs if you specify certain options for CRAC_CRIU_OPTS.
>
>
> # export CRAC_CRIU_OPTS=-V
> # java -XX:CRaCCheckpointTo=/work/cp CRACTest
> CR: Checkpoint ...
>
> CRACTest process is not killed and is waiting for checkpoint.
>
>
> # ls /work/cp
> cppath perfdata
>
>
> To avoid this problem, I want to add the checkpoint timeout.
> Can I submit a pull request to this repository? I would like you to review this change.
I haven't found any other options that cause a similar problem. The --action-scripts specification may have an impact, but I haven't been able to do it well.
CRAC_CRIU_OPTS was just an example. For example, if users specify their own program implementing with -XX: CREngine, they might see similar problem.
The purpose of this fix is to allow applications to take appropriate action when the JVM process goes into an infinite wait state for some unknown reason by throwing an exception instead.
-------------
PR Comment: https://git.openjdk.org/crac/pull/147#issuecomment-1857281939
More information about the crac-dev
mailing list