目录

Linux启动java程序很慢

目录

Linux启动java程序很慢

Linux启动java程序很慢,原因有很多。网上的解决方式也很多。

1、修改jre配置参数(尝试无效,可能场景不一)

$JAVA_HOME/jre/lib/security/java.security中的
	securerandom.source=file:/dev/random
修改为
	securerandom.source=file:/dev/urandom

2、修改hosts代理文件,映射hostnamet(不清楚原理,但是有效)

cat /etc/hostname 查看linux hostname
修改hosts文件
新增 
	127.0.0.1   hostname  或者 ip   hostname