CRaC
Coordinated Restore at Checkpoint,缩写为CRaC,大致的原理是将JVM的当前运行状态进行持久化存储起来,再
条件
- JDK版本: 17及以上,建议17或21
- OpenJDK发行版,目前支持CRaC的JDK有两家:
- Zulu JDK: 发行商为Azul,下载地址:https://www.azul.com/downloads/?version=java-17-lts&os=centos&architecture=x86-64-bit&package=jdk-crac#zulu
- Liberica JDK: 发行商为Bellsoft,下载地址:https://bell-sw.com/pages/downloads/?version=java-17&os=linux&bitness=64&package=jdk-crac&release=17.0.11%2B13
- Spring Boot: 3.2.x及以上
引依赖
<dependency>
<groupId>org.crac</groupId>
<artifactId>crac</artifactId>
<version>1.4.0</version>
</dependency>