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

后端 未结 7 1549
青春惊慌失措
青春惊慌失措 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:27

    I don't know how (or if) you can integrate it into eclipse, but it's fairly trivial to do with ant:

    
    
    
        
        
    
        
            
                
                
            
        
        
    
        
    
    

    I will add that I did not experience a 3X reduction in app startup time. I posted some experimental numbers in this thread:

    https://groups.google.com/d/msg/google-appengine/dStBW4wIemY/K69f9ufDiN0J

    What I found is that instead of varying wildly from 20-45s, it made my app consistently load in 20s. It has not subsequently remained this consistent, but I still jar my classes as a standard part of deployment now.

提交回复
热议问题