War deployment on Tomcat takes ages

后端 未结 6 1796
猫巷女王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:27

    As noted I would copy the war to the webapps folder and let tomcat do the deployment, its also quicker saving you time.

    Both Tomcat and Jetty will support a hot deploy. They simply monitor the deploy directory for changes, so you can just copy the .war file into that directory, and the server will undeploy/redeploy.

    If using a remote server check the lag is not the time take to upload the war to a remote server over the network.

提交回复
热议问题