{"id":15069401,"url":"https://github.com/hakdogan/crac-example","last_synced_at":"2026-01-03T02:33:34.221Z","repository":{"id":169446044,"uuid":"645414351","full_name":"hakdogan/crac-example","owner":"hakdogan","description":"This repository shows you how to create a checkpoint and restore from  it using CRaC","archived":false,"fork":false,"pushed_at":"2023-05-27T19:35:16.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T18:55:46.290Z","etag":null,"topics":["crac","openjdk"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakdogan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-25T15:41:34.000Z","updated_at":"2023-05-25T16:14:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"62c53fdc-c40d-4007-aa69-898931a0ab26","html_url":"https://github.com/hakdogan/crac-example","commit_stats":null,"previous_names":["hakdogan/crac-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fcrac-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fcrac-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fcrac-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fcrac-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakdogan","download_url":"https://codeload.github.com/hakdogan/crac-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847061,"owners_count":20357317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crac","openjdk"],"created_at":"2024-09-25T01:42:15.964Z","updated_at":"2026-01-03T02:33:34.197Z","avatar_url":"https://github.com/hakdogan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRaC\n\nThe [CRaC](https://openjdk.org/projects/crac/) is an `OpenJDK` project which provides a mechanism to create a checkpoint and restore from the checkpoint for Java applications while it is executing. The project is intended to improve the start-up and warm-up times and fix some issues with it.\n\nThis repository shows you how to create a checkpoint and restore from  it using CRaC.\n\n## Build and Run on Shell\n\nDetails on finding and installing the current release can be found [here](https://github.com/CRaC/docs#jdk).\n```shell\njavac -cp org-crac-0.1.3.jar org/jugistanbul/crac/Greetings.java\njar -cfm greetings.jar manifest.txt org/jugistanbul/crac/Greetings.class\n\njava -XX:CRaCCheckpointTo=image greetings.jar\n1th greetings from İstanbul\n2th greetings from İstanbul\n3th greetings from İstanbul\n4th greetings from İstanbul\n5th greetings from İstanbul\n6th greetings from İstanbul\n7th greetings from İstanbul\n8th greetings from İstanbul\n9th greetings from İstanbul\n10th greetings from İstanbul\nMay 25, 2023 3:35:03 PM jdk.internal.util.jar.PersistentJarFile beforeCheckpoint\nINFO: /home/ubuntu/greetings/greetings.jar is recorded as always available on restore\nMay 25, 2023 3:35:03 PM jdk.internal.util.jar.PersistentJarFile beforeCheckpoint\nINFO: /home/ubuntu/greetings/org-crac-0.1.3.jar is recorded as always available on restore\nCR: Checkpoint ...\nKilled\n\njava -XX:CRaCRestoreFrom=image\nDone...\n```\n## With Docker\n\n```shell\ndocker build -f ./.Dockerfile -t crac_example .\n```\n\n```shell\ndocker run -it --privileged --rm --name crac_example crac_example\n/home/greetings# java -XX:CRaCCheckpointTo=image -jar greetings.jar\n\n#for restore\n/home/greetings# java -XX:CRaCRestoreFrom=image\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakdogan%2Fcrac-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakdogan%2Fcrac-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakdogan%2Fcrac-example/lists"}