On the first day of the year, back-end developers are all gone.
So I tried to configure JBoss, and after modifying the configuration of connecter, I found that the access page was very slow.
Direct access to local JBoss, the discovery page opens quickly.
The original JBoss configuration by default is the HTTP1.1 protocol, but also by default on the KeepAlive, and nginx as reverse proxy only support HTTP1.0 protocol. Nginx when interacting with the backend server, Using the HTTP1.0 mode, it is considered that each connection is closed to calculate the request completed, and the backend server uses keepalive, so Nginx waits until the backend keepalive connection is closed to return to the browser, so the access page is very slow.
The source of the problem has been found, the changes are very fast, referring to the http://tomcat.apache.org/tomcat-6.0-doc/config/http.html document, will maxkeepaliverequests= 1, turn off keepalive. After restarting JBoss, the problem is resolved.
-------------part of the content is referenced in the network -------------//
The above describes the Nginx agent local JBoss access to the problem, including the content, I hope the PHP tutorial interested in a friend helpful.