Re: [appengine-java] Is threadsafe setting ignored for java applications?
Thank you for your response... indeed, it was the browser that serialized all the requests (I used both Firefox 3.x and 7.x)... I've checked the app using wget and everything worked as expected. I didn't bother to check the browser because I configured Firefox to use separate brand new connections for each request (network.http.keep-alive = false, network.http.max-connections=256, network.http.max-connections-per-server=15) and I'm not behind a proxy... Anyway, it seems that for the same resource, Firefox still serializes requests and ignores all the above settings. Now, after seeing what the problem was, I've gone even further and configured Firefox to use http pipelining and persistent connections (network.http.keep-alive = true, network.http.max-connections=256, network.http.max-connections-per-server=15, network.http.pipelining=true) with no more luck: the requests for the same resource are still being serialized. Any ideas how to convince Firefox to open concurrent connections to the same web resource? -- 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/-/M69MJh1QZm4J. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Is threadsafe setting ignored for java applications?
I've tested it and I can confirm that a dummy query parameter solves the problem... this is mainly because Firefox perceives the newly formed urls as separate resources... however, for the same resource I still could not find a way to get Firefox to open concurrent connections. Meanwhile, I will use this hack to test the app. Thanks. -- 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/-/_6CX7_MT9YwJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Is threadsafe setting ignored for java applications?
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 threadsafetrue/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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.