Spring boot 启动慢

Ido*_*ash 3 spring-boot

这是一个奇怪的问题。

我们正在使用带有集成 tomcat 的 Spring Boot Web 应用程序。

在我的本地 Mac 上,应用程序启动很快......几秒钟。在装有 Centos 7 的 google 机器上,启动速度非常慢......大约 2 分钟。

应用程序是用 JAVA 8 编写的

有人可以帮忙吗?

ale*_*xbt 5

这是由@AndyWilkinsoncommunity wiki answer提供的

你用的是汤姆猫吗?这可能是由于缺乏熵导致它阻塞。有关更多详细信息,请参阅Spring Boot Actuator 应用程序无法在 Ubuntu VPS 上启动。

@leozin

尝试安装havegedsudo apt-get install haveged -y