NAME=“Kylin Linux Advanced Server”
VERSION=“V10 (Sword)”
ID=“kylin”
VERSION_ID=“V10”
openjdk version “1.8.0_272”
OpenJDK Runtime Environment Bisheng (build 1.8.0_272-b10)
OpenJDK 64-Bit Server VM Bisheng (build 25.272-b10, mixed mode)
-server -Xms8g -Xmx8g -Xmn3g -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=1024m -Dhttp.maxConnections=200
在正常业务进行时,oraclejdk会出现StackOverflowError后应用正常提供服务。但是在 bishengjdk 上面应用会直接宕机
复现代码
@RestController
public class FmuserController {
@Resource
private FmuserMapper fmuserMapper;
@RequestMapping(value = "/test")
public void test(){
int a = 0;
save(a);
}
public void save(int a){
Fmuser fmuser = new Fmuser();
fmuser.setName(a++);
fmuserMapper.insert(fmuser);
save(a);
}
}