How long is the warmup time of your app?
Can you show the configuration file of your app? (appengine-web.xml)

On Friday, February 28, 2014 1:02:28 AM UTC+8, de Witte wrote:

> We don't use modules, why should you? Do you have a requirement which 
> cannot be done without them?
>
>
> Op donderdag 27 februari 2014 02:58:56 UTC+1 schreef Rafael Sanches:
>>
>> De Witte,
>>
>> Do you have a multi module project?
>>
>> How do you handle that without module? The eclipse plugin doesn't work 
>> with that setup.
>>
>> thanks
>> rafa
>>
>>
>> On Wed, Feb 26, 2014 at 3:45 PM, de Witte <wd.de...@gmail.com> wrote:
>>
>>> We have been working with Java and GAE for several years now and so far 
>>> no problems. 
>>>
>>> AngularJs + ExtJS 4.0 is a good combo for the front end. Although I 
>>> prefer GWT.
>>>
>>> Spring+Maven is a headache even without GAE. We have been avoiding it 
>>> and doing fine.
>>>
>>>  
>>>
>>>
>>>
>>>
>>> Op maandag 24 februari 2014 03:11:22 UTC+1 schreef Rafael Sanches:
>>>>
>>>> Not being updated doesn't mean it doesn't work properly. 
>>>>
>>>> GAE + java is definitely frustrating, but some of your statements are a 
>>>> bit too broad ;)
>>>>  
>>>>
>>>> On Sun, Feb 23, 2014 at 12:44 AM, Tapir <tapi...@gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sunday, February 23, 2014 1:47:28 PM UTC+8, Rafael Sanches wrote:
>>>>>>
>>>>>> Can you try and let us all know? it may be the solution you're 
>>>>>> looking for. 
>>>>>>
>>>>>>
>>>>> The Google App Engine module for Play has not been updated for 2 
>>>>> years! :(
>>>>>
>>>>> For another one, Objectify , https://code.google.com/p/
>>>>> play-framework-objectify/, the showcase on this page need >15 seconds 
>>>>> to load. :(
>>>>>
>>>>> The decision is made, I will never use java for web development any 
>>>>> more, for many reasons, such as not support hot deploy, large memory 
>>>>> consumption, too many configurations, too many hidden elements, and too 
>>>>> slow startup on GAE.
>>>>>  
>>>>>
>>>>>>
>>>>>> On Thu, Feb 20, 2014 at 8:29 PM, Tapir <tapi...@gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Friday, February 21, 2014 5:39:17 AM UTC+8, Rafael Sanches wrote:
>>>>>>>>
>>>>>>>> Have you tried playframework? They have optimizations to make your 
>>>>>>>> life easier when developing. 
>>>>>>>>
>>>>>>>> My life is living hell right now when developing with maven and 
>>>>>>>> appengine. The play framework solves that by running their own thing. 
>>>>>>>>
>>>>>>>> Read more: 
>>>>>>>> http://www.playframework.com/documentation/1.0/gae<http://www.google.com/url?q=http%3A%2F%2Fwww.playframework.com%2Fdocumentation%2F1.0%2Fgae&sa=D&sntz=1&usg=AFQjCNFObfH5yu11uniN9ReUNUVgFDtbGg>
>>>>>>>>
>>>>>>>
>>>>>>> I don't think they can bypass the core GAE SDK lib.
>>>>>>> The problem of GAE Java is at the core GAE SDK lib.
>>>>>>>  
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Feb 19, 2014 at 7:24 PM, Tapir <tapi...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thursday, February 20, 2014 6:26:52 AM UTC+8, Emanuele Ziglioli 
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Great stuff
>>>>>>>>>>
>>>>>>>>>> hope you don't move to Go too soon!
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Why?
>>>>>>>>> It is a way of no ways.
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thursday, 20 February 2014 03:52:33 UTC+13, Tapir wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tuesday, February 18, 2014 6:43:56 PM UTC+8, Tapir wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tuesday, February 18, 2014 4:56:51 PM UTC+8, Rafael Sanches 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> very interesting... 
>>>>>>>>>>>>>
>>>>>>>>>>>>> can you tell me how you did that? in a maven build or only via 
>>>>>>>>>>>>> eclipse?
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> neither, I did it manually.
>>>>>>>>>>>>
>>>>>>>>>>>> ok, the new test result:
>>>>>>>>>>>> 1. if I remove all jar files from the war/WEB-INF/lib, the 
>>>>>>>>>>>> warmup time is about 2.3 seconds. 
>>>>>>>>>>>> 2. if I put the only the core app engine sdk jar file in 
>>>>>>>>>>>> war/WEB-INF/lib, but doesn't reference it, the warmup time is 
>>>>>>>>>>>> about 2.9 
>>>>>>>>>>>> seconds.
>>>>>>>>>>>> 3. if I put "DatastoreService datastore = 
>>>>>>>>>>>> DatastoreServiceFactory.getDatastoreService();" in the jsp 
>>>>>>>>>>>> file but do nothing eslse, the warmup time is 3.5 seconds
>>>>>>>>>>>> 4. if I put a query in the default jsp file, the warmup time is 
>>>>>>>>>>>> 4.7 seconds.
>>>>>>>>>>>> 5. if I convert query result as list, the warmup time is 6 
>>>>>>>>>>>> seconds.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> made some new tests today. The results are some different.
>>>>>>>>>>>
>>>>>>>>>>> =======================================
>>>>>>>>>>>
>>>>>>>>>>> First, the impact of number of lib jar files:
>>>>>>>>>>> 1. no lib jar files, warm up time = 3 seconds (slower than 
>>>>>>>>>>> yesterday)
>>>>>>>>>>> 2. one core lib jar file, no refs, warm up time = 5 seconds 
>>>>>>>>>>> (slower than yesterday)
>>>>>>>>>>> 3. four core lib jar files (the ones under sdk user folder), no 
>>>>>>>>>>> refs, warm up time = 5.7 seconds 
>>>>>>>>>>> 4. fifty-four jar files (used in my projects) , no refs, warm up 
>>>>>>>>>>> time = 6.2 seconds 
>>>>>>>>>>>
>>>>>>>>>>> So, obviously,  the core GAE SDK lib files have a big impact on 
>>>>>>>>>>> the warm up time.
>>>>>>>>>>>
>>>>>>>>>>> ========================================
>>>>>>>>>>>
>>>>>>>>>>> Second, number of references of core sdk lib.
>>>>>>>>>>> 1. no refs, 3.5 seconds
>>>>>>>>>>> 2. fewer refs, 4.4 seconds, by adding "DatastoreService 
>>>>>>>>>>> datastore = DatastoreServiceFactory.getDatastoreService();     
>>>>>>>>>>> Key guestbookKey = KeyFactory.createKey("Guestbook", 
>>>>>>>>>>> guestbookName);"
>>>>>>>>>>> 3. more refs, 5.5 seconds, by adding "Query query = new 
>>>>>>>>>>> Query("Greeting", guestbookKey).addSort("date", Query.SortDirection.
>>>>>>>>>>> DESCENDING);     List<Entity> greetings = 
>>>>>>>>>>> datastore.prepare(query).asList(FetchOptions.Builder.withLim
>>>>>>>>>>> it(5));"
>>>>>>>>>>>
>>>>>>>>>>> So, the first references to core lib class will also increase 
>>>>>>>>>>> the warm up time. In this example, only part of core classes are 
>>>>>>>>>>> refed, if 
>>>>>>>>>>> there are more, the warmup time would be longer.
>>>>>>>>>>>
>>>>>>>>>>>  ========================================
>>>>>>>>>>>
>>>>>>>>>>> The performance of GAE instances varies much in the tests. So 
>>>>>>>>>>> the result may be not very accurate, but I think the conclusions 
>>>>>>>>>>> are 
>>>>>>>>>>> reliable.
>>>>>>>>>>>
>>>>>>>>>>> Final conclusion: using pure jsp/servlet will not save a GAE 
>>>>>>>>>>> java project.
>>>>>>>>>>>   
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>  
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> so, I think it is very clear that the datastore API is main 
>>>>>>>>>>>> cause of long warmup time. A simple datastoe calling will increase 
>>>>>>>>>>>> the 
>>>>>>>>>>>> warmup time much. In above example, the total increased warmup 
>>>>>>>>>>>> caused by 
>>>>>>>>>>>> datastore APIs is more than 3 seconds. 
>>>>>>>>>>>>
>>>>>>>>>>>> Otherwaise, scanning the core app engine sdk jar will cost 0.5 
>>>>>>>>>>>> second.
>>>>>>>>>>>>
>>>>>>>>>>>> So, @GAE_team, please optimize your datastore APIs. Done!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Feb 18, 2014 at 12:44 AM, Tapir <tapi...@gmail.com>wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ok, I removed all core GAE jar files under SDK/lib/user
>>>>>>>>>>>>>> Now the warmup time dropped from 5-7 seconds to 3-4 seconds.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> What is appengine-api-labs-1.x.x.jar? is it essential?
>>>>>>>>>>>>>> And must the appengine-api-1.0-sdk-1.x.x.jar be included in 
>>>>>>>>>>>>>> the project war directory?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tuesday, February 18, 2014 1:59:15 PM UTC+8, Tapir wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tuesday, February 18, 2014 4:33:16 AM UTC+8, Emanuele 
>>>>>>>>>>>>>>> Ziglioli wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Not sure where my reply went.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Tuesday, February 18, 2014 3:57:37 AM UTC+8, Emanuele 
>>>>>>>>>>>>>>>>> Ziglioli wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Our warmup time was 15 seconds, then I looked at the 
>>>>>>>>>>>>>>>>>> hello world project that the GAE plugin generates with one 
>>>>>>>>>>>>>>>>>> servlet.
>>>>>>>>>>>>>>>>>> That took 2 seconds to startup (once the servlet was hit).
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On F2 instance?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Haven't seen much difference between F1 and F2 when it 
>>>>>>>>>>>>>>>> comes to warmup time.
>>>>>>>>>>>>>>>> Most time seems to be spent actually loading jars. 
>>>>>>>>>>>>>>>> Initialization could be as little as 3s with our project, F2 
>>>>>>>>>>>>>>>> would a bit 
>>>>>>>>>>>>>>>> better but not so much
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> why? looks not reasonable.
>>>>>>>>>>>>>>>  
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> My experience is the modules feature will spend your money.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I haven't seen many people using modules yet. Can't they be 
>>>>>>>>>>>>>>>> configured to be F1 like non default versions?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> should be.
>>>>>>>>>>>>>>>  
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>  
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>  -- 
>>>>>>>>>>>>>> You received this message because you are subscribed to the 
>>>>>>>>>>>>>> Google Groups "Google App Engine" group.
>>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from 
>>>>>>>>>>>>>> it, send an email to google-appengi...@googlegroups.com.
>>>>>>>>>>>>>> To post to this group, send email to 
>>>>>>>>>>>>>> google-a...@googlegroups.com.
>>>>>>>>>>>>>> Visit this group at http://groups.google.com/group
>>>>>>>>>>>>>> /google-appengine.
>>>>>>>>>>>>>> For more options, visit https://groups.google.com/grou
>>>>>>>>>>>>>> ps/opt_out.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>  -- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "Google App Engine" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>>> send an email to google-appengi...@googlegroups.com.
>>>>>>>>> To post to this group, send email to google-a...@googlegroups.com.
>>>>>>>>> Visit this group at http://groups.google.com/group
>>>>>>>>> /google-appengine.
>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>>
>>>>>>>>
>>>>>>>>  -- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "Google App Engine" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to google-appengi...@googlegroups.com.
>>>>>>> To post to this group, send email to google-a...@googlegroups.com.
>>>>>>> Visit this group at http://groups.google.com/group/google-appengine.
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>  -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Google App Engine" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to google-appengi...@googlegroups.com.
>>>>> To post to this group, send email to google-a...@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/google-appengine.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to