Nginx Agent local JBoss access laborious problem

Source: Internet
Author: User
Tags jboss
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.