1.用vim编辑器打开tomcat的bin目录下的Catalina.sh

2.增加一行:JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"

3.重启tomcat,速度即可得到大幅度提升。