Summary: Apache / Tomcat JBOSS / Jetty / Nginx difference /.

 

Summary:. Apache / Tomcat / JBOSS / Nginx difference
1, Apache Web server, Tomcat application (Java) server. Tomcat is not widely used in many occasions small and medium systems and concurrent user access. Apache supports static pages, Tomcat support dynamic.
2, Jetty: Tomcat Servlet container as its core engine, and to be reviewed and medium-sized tuning system may be applied. To provide database connection pool service, also supports integration with other Web technologies, such as PHP, .NET two camps.
3, is a management JBoss EJB container and server, JBoss core services but does not include support for servlet / JSP container of WEB, generally use Tomcat or Jetty binding.
4, Nginx is currently the highest performance HTTP server. It features occupy less memory, high concurrency. Nginx code is written from scratch in C language.

So: Apache - Nginx; Tomcat - Jetty; JBoss. This may be a combination of the three groups.

 

specific description:

A, Apache + Tomcat
the Apache supports static pages, dynamic Tomcat support, such as Servlet, etc.,
  generally use the words of Apache + Tomcat, Apache only as a forwarding treatment by the Tomcat JSP is handled.
Apche can support PHPcgiperl, but you want to use Java, you need Apache Tomcat support in the background, the request will be forwarded by the Java Apache Tomcat to handle.
Apache Web server, Tomcat application (Java) server, it is just a Servlet (JSP also translated into Servlet) vessel, Apache can be considered an extension, but can run independently of the Apache.

The two following points can be compared:
◆ Both are developed by Apache
functions ◆ have both HTTP services
both are free ◆
  different points:
Apache is specifically used to provide HTTP services, and Related configuration (such as web hosting, URL forwarding, etc.)
Tomcat is developed under standard Java EE-compliant JSP, Servlet a JSP server: Tomcat is not widely used in many occasions small and medium systems and concurrent user access.

Two, Jetty

The Jetty adopt industry's best open-source Java Web engine, the most downloaded Java community, the largest number of users, the most comprehensive standards support Tomcat Servlet container as its core engine, and be reviewed and tuning. Limited purely Tomcat performance, the performance is lacking in many places, such as support for an active connection, static content, and large files such as HTTPS. In addition to performance issues, Tomcat another big drawback is that it is a limited integration platform, only to run Java applications. Enterprises in the use of Tomcat, often need to deploy Apache WebServer to integrate with them. This configuration is more complicated, and can not guarantee the performance superiority.
By using a hybrid model APR Jetty and Tomcat Tomcat native technologies to solve the many problems. Hybrid technology model provides the best threads and process events from the latest technology in the operating system. The results, Jetty achieve scalability, performance parameters to match or even surpass the local Apache HTTP Server or IIS. For example Jetty provides database connection pooling service, not only supports JSP and other Java technology, and also supports integration with other Web technologies, such as PHP, .NET camps.

Three, the Nginx
the Nginx with high stability. Other HTTP server, when faced with the peak access, or someone maliciously initiated a slow connection, it is likely to cause the server to run out of physical memory frequent exchange loss of response, only to restart the server. For example, once the current apache process to more than 200, web response speed is obviously very slow. The Nginx has taken a phased resource allocation technology, making its CPU and memory usage rate is very low. nginx officials said no activity to keep 10,000 connections, it accounts for only 2.5M of memory, so DOS attacks like this for nginx is basically useless. In terms of stability, nginx than lighthttpd better.

Four, JBoss

JBoss application server based on open source J2EE .JBoss is a management EJB container and server, JBoss core services but does not include support for servlet / JSP the WEB container, Tomcat or Jetty generally binding uses.
JBoss Web server running in the same Java virtual machine JBoss admin interface, Servlet calling EJB run without a network, thus greatly improving operational efficiency and improve safety performance.

Guess you like

Origin www.cnblogs.com/zhuyeshen/p/11725620.html