Why GAE request takes so much time?

65 views
Skip to first unread message

Andrey Ilinykh

unread,
Aug 13, 2012, 12:19:58 AM8/13/12
to google-a...@googlegroups.com
Hello, everybody!
I have simple GWT application which is running against GAE.  
The problem is - simple query takes too long. I put log result below. As you can see it takes almost 4 seconds (this is not first request which causes a new process started). I added logging into my data access class (RawData).
It shows that all data reading takes only 29 ms. So, my question is - who consumes rest of cpu? How can I profile my application to get clear picture?

Thank you,
  Andrey


2012-08-12 20:48:16.781 /gwtRequest 200 3918ms 87kb Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19
98.210.16.181 - - [12/Aug/2012:20:48:16 -0700] "POST /gwtRequest HTTP/1.1" 200 87656 "http://hikeinthecloud.appspot.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19" "myapp.appspot.com" ms=3918 cpu_ms=3028 api_cpu_ms=39 cpm_usd=0.093998 instance=00c61b117cd5d51838dc0c430d3d0123c842a9
I 2012-08-12 20:48:12.905
domain.RawData getData: getData 1344719667, 1344725313
I 2012-08-12 20:48:12.907
domain.RawData getData: Start getting data...
I 2012-08-12 20:48:12.908
domain.RawData getData: Finish getting data. 1ms
I 2012-08-12 20:48:12.936
domain.RawData getData: Return data. 2 backets, 29ms

Rerngvit Yanggratoke

unread,
Aug 13, 2012, 10:05:07 AM8/13/12
to google-a...@googlegroups.com
You can use Appstat to profile your application. Have a look at http://googleappengine.blogspot.com/2010/03/easy-performance-profiling-with.html.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/9AL-Q8TR_9kJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Best Regards,
Rerngvit Yanggratoke 
Reply all
Reply to author
Forward
0 new messages