Configure Eclipse to pre-bundle App Engine classes into a single JAR for faster warm-up

后端 未结 7 1530
青春惊慌失措
青春惊慌失措 2021-02-02 12:15

After some discussion with a colleague from another company that also uses App Engine, he told me that he managed to cut down his app warm up time from ~15 seconds to ~5 seconds

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-02 12:36

    One way this can be achieved if by doing the deployment through Ant, as described in: https://developers.google.com/appengine/docs/java/tools/ant

    Next you can modify the ant build.xml file to call the ant command for building the jar file. Just before the actual deployment you can either delete or move the compiled artifacts away. The build jar-file should be placed in the WAR/WEB-INF/lib folder.

    Drawback of this solution is that you have to deploy through the build.xml, i.s.o. through the appengine eclipse plugin.

提交回复
热议问题