Linux启动java程序很慢,原因有很多。网上的解决方式也很多。
1、修改jre配置参数(尝试无效,可能场景不一)
$JAVA_HOME/jre/lib/security/java.security中的 securerandom.source=file:/dev/random 修改为 securerandom.source=file:/dev/urandom
2、修改hosts代理文件,将本机ip映射到localhost(不清楚原理,但是有效)
新增 127.0.0.1 host-68-xx-xx-157



