java - io handling in tomcat -


i noticed major difference in processing time between 2 servlets in same tomcat , 2 separate tomcats on same host. servlets communicate using http. tomcat or java have mechanism optimizes http communication when in same tomcat or jvm. i'm trying confirm observation not related host i'm running on.

it difference between blocking , non-blocking i/o.

tomcat uses multi-thread model: have pool of threads processing requests , queue incoming requests. server assigns thread incoming request processing, performs task, sends response, , returns thread pool. queue handles requests up.

non-blocking io, employed netty, different.

perhaps 2 requests being queued when processed same tomcat.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -