Were all the requests sent at the same time (can you check using wireshark or similar) or did your browser queue them - most browsers have a "connections per server" limit as well as a total connection limit and some will do their best to re-use a single connection where possible.
On 26 October 2011 21:46, cryb <[email protected]> wrote: > Hello. > In order to test if <threadsafe> setting is working as expected, I wrote a > small application that increments a static counter variable, sleeps for a > couple of seconds and returns the counter's value in a web page. After that > I've issued 15 requests in parallel from my browser (using different tabs). > During the test, the same server instance served all my requests (as shown > in admin console / instances)... this was also in agreement with the > returned web pages where the counter increased from 1 to 15 (i.e. all > requests were processed by the same server instance sharing the same static > counter variable). > So far, so good... the only problem was that all requests were serialized, > as if no <threadsafe> setting was in place (I mention here that I've > included <threadsafe>true</threadsafe> in appengine-web.xml file)... The > sleep time I used was 3 seconds and I had to wait about 15*3 = 45 seconds > for the last tab to complete and to display the generated web page. > So my question is: why does <threadsafe> setting seems to be ignored for > java applications? Is there a bug in appengine system? > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine-java/-/1wPUkvSu3o8J. > 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. > -- 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.
