开发者

Tomcat servlet synchronization

Why when I debug my application in tomcat and i invoke 2 request from the same client (same session), the second request is processed only when the first has 开发者_如何学JAVAfinished ??? Tomcat sync the servlets of the same session??? This does not happen in jetty


Tomcat does not synchronize servlets. If there is any synchronization, chances are you've introduced it some how. Perhaps your connecting to a database and haven't configured your connection pool correctly?

Sorry, I just reread your question. You wouldn't have stuck a break point in your code would you? If you did the debugger is going to serialize the execution by stoping at the break point each time a thread hits it. Does that make sense?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜