War deployment on Tomcat takes ages

后端 未结 6 1685
猫巷女王i
猫巷女王i 2021-02-07 23:11

I have a Grails application, built to a war file (~30mb). When I attempt to deploy the war file on Tomcat 6 via the application manager, it takes upwards of 10 minutes to deploy

6条回答
  •  爱一瞬间的悲伤
    2021-02-07 23:48

    This may be relate to this BUG of JDK

    I readed this article, Tomcat7 starts too late on Ubuntu 14.04 x64 and resolved my problem.

    Try to resolve it by replacing

    securerandom.source=file:/dev/urandom  
    

    with

    securerandom.source=file:/dev/./urandom 
    

    in $JAVA_PATH/jre/lib/security/java.security

提交回复
热议问题