随笔分类 - server technology
摘要:Servlet Threading ModelThe scalability issues of Java servlets are caused mainly by the server threading model:Thread per connectionThe traditional IO...
阅读全文
摘要:一。thread-per-connectionThe thread-per-connection approach uses an exclusive worker thread foreach connection. Within the handling loop, a worker threa...
阅读全文
摘要:一。传统数据传输1.user mode &kernel mode2.context switchThe steps involved are:1.The read() call causes a context switch (see Figure 2) from user mode to kern...
阅读全文
摘要:一。server.xml在每个容器对象里面都有一个pipeline,Pipeline就像是每个容器的逻辑总线。 --> --> 二。源码追踪1.Engine /** * Cre...
阅读全文
摘要:Tomcat 经过长时间的发展,它已经广泛的被市场接受和认可,尤其在企业级应用方面,Tomcat 仍然是第一选择。但是随着 Jetty 的发展,Jetty 的市场份额也在不断提高。1.架构 Jetty 比 Tomcat 更加简单。Jetty 的所有组件都是基于 Handler 来实现。可以说 ...
阅读全文
摘要:The Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application serverthat sits behin...
阅读全文