Describe how Apache + Tomcat + JK implements Tomcat load and clusters
I have studied the combination of Apache and Tomcat. I will write the process out later.
In Linux, Apache +
How to install is not introduced, their own online search.
Configure Nginx. This is then configured on a CAS single sign-on.
[Java] view plain copy upstream 127.0.0.1 {server 127.0.0.1:18080 weight=2; Server 127.0.0.1:28080 weight=2; Server 127.0.0.1:8080 weight=3; }Weight is the weight value, the larger the number, the greater the chance of being visited.
Modify apache-tomcat-6.0.37\conf and
) modify the WEB-INF/Web. xml file, add
(2) Add the WEB-INF configuration file under the jboss-web.xml folder (special configuration of JBoss, loaded together with Web. XML)
VII. Test
1. Add the test folder under server/node1 (node2)/deploy/root. War and put it in the test JSP (the attachment is downloaded );
2. Start the Apache httpd server (by using commands or making Windows Services );
3. Start two JBoss instances:
(1) Add two bat batches under
Tomcat to form a cluster, load balancing can be achieved, V1.0 and V2.0 May show a more detailed configuration of the upstream that makes up the Tomcat cluster, and can refer to the official documentation, with Nginx forwarding requests to the servers in the Tomcat cluster
Use Apache as Web Proxy
The apusic application server can integrate with Apache in the following two ways:4.9.1. HTTP Proxy
The mod_proxy_http module provided by Apache can be used to integrate with the apusic application server, and the apusic application server does not require any settings. Mod_proxy_http provides the proxy HTTP Request function. Supports HTT
1 causeRecently, a stress test was conducted on the newly developed web system, and it was found that the response speed of concurrent logon home pages under tomcat's default configuration pressure to 600 people was severely affected, more than 2000 errors of 500 and 502 occur in one round. I made a look at the logon time statistics and printed out the total server processing time. I saw that some responses were indeed within 20 seconds, however, the average time is far from the lr test. Therefo
capability. First, increase the number of tomcat threads to 1000, and find that the number of errors 500 and 502 has dropped to dozens, but the response time has not improved yet. Later, two tomcat servers were started, and nginx was used for load balancing. the response time dropped by 40%. the processing duration of
Nginx load balancing for multiple tomcat under one machine?1 Download tomcat, free install versionAddress: http://pan.baidu.com/s/1jGAgc5o2. Copy a tomcat copy ( the following operation only needs to be in the copy )The name is:3. Modify Server.confOpen File LocationModify t
Before using Nginx did the Web reverse proxy, did not do load balancing, today there is a classmate need to do Tomcat load balancing, I also studied.
There are altogether 2 machines, one physical machine (Win7) that deploys 2 t
The first part environment introductionDeployment environment:Host1:nginx, Memcached, TOMCAT1Host2:tomcat2tomcat_version:8.0.38The second part nginx+tomcat to achieve load balancing1, Nginx and Tomcat installation omitted2, Nginx load Balancing configuration:The
/{# root HTML; # index index.html index.htm; # } #}}Second, set up the Tomcat cluster session sharing1.Modify the Conf/server.xml port in three tomcat directoriesand Tomcat 123 for JVM 123, respectively.2.Launched Tomcat 123 and Nginx, respectively, to access the IP:80 entry project is successfulSession whethe
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/48272857
We'll be with you today. Cluster and load balancing for Tomcat and Nginx
One, Tomcat cluster configuration port planning
Note: This port is started on the same machine 2 tomcat, need t
[Linux] nginx tomcat performs load balancing, nginxtomcat
I used nginx as a web reverse proxy and did not perform load balancing. Today I have a student who needs to perform Load Balancing
The first time I saw this headline I was surprised that Apache can still do load balancing? It's so powerful. After a survey found that it can, and the function is not bad. This is thanks to the Mod_proxy module. Is worthy of the mighty Apache AH.
Less nonsense, the following is to explain the
Nginx tomcat Cluster load balancing solution notes Windows download nginx address: http://nginx.org/the version used in this article is 1.5.1 download after decompression, In the conf directory to modify nginx. conf: # user nobody; worker_processes 1; # error_log logs/error. log; # error_log logs/error. log notice; # error_log logs/error. log info; # pid logs/ngi
1 cause
Recently, a stress test was conducted on the newly developed web system, and it was found that the response speed of concurrent logon home pages under Tomcat's default configuration pressure to 600 people was severely affected, more than 2000 errors of 500 and 502 occur in one round. I made a look at the logon time statistics and printed out the total server processing time. I saw that some responses were indeed within 20 seconds, however, the average time is far different from that test
, increase the number of tomcat threads to 1000, and find that the number of errors 500 and 502 has dropped to dozens, but the response time has not improved yet. Later, two tomcat servers were started, and nginx was used for load balancing. the response time dropped by 40%. the processing duration of the two
1 causeRecently, a stress test was conducted on the newly developed web system, and it was found that the response speed of concurrent logon home pages under tomcat's default configuration pressure to 600 people was severely affected, more than 2000 errors of 500 and 502 occur in one round. I made a look at the logon time statistics and printed out the total server processing time. I saw that some responses were indeed within 20 seconds, however, the average time is far different from that teste
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.