RE: "One way to tell is by registering a load-on-startup servlet and
logging from its init method."

Is there any sort of unique identifier for the application instance
that we can include in the log message? I'd like to be able to monitor
how many instances of my application are running. I don't care what
the identifier is and wouldn't try to use it for any other purpose.
The only thing I can find that might work is the "user.dir" system
property, which seems to vary based on application instance.


On Fri, Sep 25, 2009 at 11:26 AM, Toby Reyelts <[email protected]> wrote:
> Yes, it's very possible for two requests (serial or concurrent) to land on
> two different applications instances, one being newly initialized, the other
> already warm. (Does not technically have to be physically separate
> machines).
>
> On Fri, Sep 25, 2009 at 11:01 AM, mably <[email protected]> wrote:
>>
>> Thanx for your answer, the response times seems to be back to normal.
>> I'll keep an eye on it.
>>
>> May be the two pages where served from different machines ?
>>
>> On 25 sep, 16:48, Toby Reyelts <[email protected]> wrote:
>> > Is your application being initialized when you hit that URL? (One way to
>> > tell is by registering a load-on-startup servlet and logging from its
>> > init
>> > method). If so, what's likely happening is that you're not including
>> > your
>> > app initialization when you only time the service method of your
>> > servlet.
>> >
>> >
>> >
>> > On Thu, Sep 24, 2009 at 11:41 AM, mably <[email protected]> wrote:
>> >
>> > > Hello everybody,
>> >
>> > > I dont really understand the logs GAE shows me in the admin console :
>> >
>> > > I have a first URI showing a simple search form that gives me :
>> >
>> > > 09-24 08:24AM 30.341 /default/ftsearch.do?_contenttype_=content 200
>> > > 117ms 103cpu_ms 73api_cpu_ms
>> >
>> > > But my servlet service method lasts only :
>> >
>> > > INFO : com.mably.cms.web.DispatcherServlet service: 6ms
>> >
>> > > And I have a second URI listing data from the datastore that gives
>> > > me :
>> >
>> > > 09-24 08:24AM 28.575 /default/notifications.do 200 38ms 27cpu_ms
>> > > 13api_cpu_ms
>> >
>> > > INFO : com.mably.cms.web.DispatcherServlet service: 10ms
>> >
>> > > What's annoying me is that the fastest (6ms versus 10ms) servlet seems
>> > > to last longer for GAE (117ms vs 38ms) and to take more CPU.
>> >
>> > > Can somebody explain these numbers to me ?
>> >
>> > > Thanx in advance.
>> >
>> > > Francois
>> > > Bordeaux, FRANCE
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to