When using MyEclipse to do development and start Tomcat, the console always complains failed to initialize end point associated with Protocolhandler ["http-apr-8080"].
When Tomcat starts, the problem above arises because Tomcat's default 8080 port is occupied, so there should be two ways to solve this problem, one is to give Tomcat a new port number instead of the default 8080; the other is to turn off the port process that is currently being used.
I didn't change the port number, I closed the
text so that Apache automatically loads the proxy module at startup 。
Copy Code code as follows:
LoadModule Proxy_module modules/mod_proxy.so
LoadModule Proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule Proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule Proxy_connect_module modules/mod_proxy_connect.so
LoadModule Proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule Proxy_http_module modules/mod_proxy_http.so
Pull down the document to find
Then o
HTTP Server, then modifies its configuration file http.conf, first load three model, the code is as follows: LoadModule Proxy_module modules/mod_proxy.soLoadModule Proxy_ajp_module modules/mod_proxy_ajp.soLoadModule Proxy_balancer_module modules/mod_proxy_balancer.so then add the following code to the end of this profile:Proxypass/balancer://tomcatcluster/lbmethod=byrequests Stickysession=jsessionid nofailover=Off timeout=5 Maxattempts=3proxypassreverse/balancer://tomcatcluster/Balancermember
Have the experience of server building know that if you do Java development, the combination of Tomcat and Apache has the following advantages: 1, using Apache to do load balancing and fault tolerance; 2,apache focus on static web analytics, Tomcat focus on Dynamic web analytics, This can increase server efficiency by 3, and the application can be upgraded seamlessly.
Recently used Ubuntu12.04 to do the server (the principle should not use the latest version and should use a stable version), re
1.1 problemSometimes we also want to change the default bio mode of Tomcat to NiO mode, how do we change it?1.2 ProgrammeModify it through the server.xml inside Eclipse.1.3 StepsFirst, let's take a look at Eclipse's default Server.xml fileNoun Explanation:Bio (blocking I/O), as the name implies, is a blocking I/O operation that indicates that Tomcat is using traditional Java I/O operations (that is, the Java.io package and its sub-packages). Tomcat, by default, is run in bio mode. Unfortunately,
-snapshot.tar.gzcd/var/lib/tomcat7/webappscp/srv/jstorm/jstorm-ui-0.9.6.2.war./MV ROOT ROOT.oldln -sjstorm-ui-2.0.4-snapshot ROOT2.zookeeper-web-ui2.1. Download3.jstorm integration with Apache3.1Apache Load AJP ModuleApache2.2 above can use AJP way, simple and convenient;Execute the following command to view the modules that Apache has loaded:Apachectl-t-D Dump_modulesExecute the following command to load t
the power of 8 NS) a clock cycle, the result is 10ns.
Bus Cycle: The CPU reads commands from the memory, accesses data to the memory, reads and writes data to the peripheral port, and executes the bus cycle. The bus cycle usually contains four T states: T1, T2, T3, t4. A t state is a clock cycle. It is the minimum time unit for the CPU to perform operations.
Machine cycle:Generally, the CPU cycle (machine week) is specified by the shortest time for reading a script from the memory.Period), that
Biorhythms
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 121194
Accepted: 38157
DescriptionSome people believe that there be three cycles in a person's life that's start the day he or she's born. These three cycles is the physical, emotional, and intellectual cycles, and they have period
, processor clock cycles, and so on, and you can analyze software events such as Page Fault and process switching.This allows Perf to have numerous performance analysis capabilities, for example, using Perf to calculate the number of instructions per clock cycle, known as IPC,IPC Low, to indicate that the code is not using the CPU well. Perf can also perform function-level sampling of the program to see where the program's performance bottlenecks are,
row-by-pass cycle, which should be a delay based on the response time of the chip storage array electronics. TRCD is an important timing parameter for SDRAM, which can be adjusted by setting the SOC's memory controller, but not exceeding the manufacturer's predetermined range. The generalized trcd, in terms of the number of ticks, such as trcd=2, represents a delay period of two clock cycles, depending on the clock frequency, to the exact time.
(4) D
Experimental content: Using Nginx to do front-end reverse load balancing backend Httpd+tomcatExperimental environment: Physical machine Win7, virtual machine centos7;node1:172.18.11.111 Httpd+tomcatnode2:172.18.11.112 Httpd+tomcatnode3:172.18.11.113 Nginx Reverse Load BalancingDescription: HTTPd has two ways of communicating with Tomcat;(1) httpd can use the HTTP module to reverse tomcat, when Tomcat uses the HTTP linker;(2) httpd can also use the AJP
=8009worker.jetty_a.host=127.0.0.1worker.jetty_a.type=ajp13worker.jetty_ a.lbfactor=2 worker.list=jetty_bworker.jetty_b.port=8010worker.jetty_b.host=127.0.0.1worker.jetty_b.type= Ajp13worker.jetty_b.lbfactor=1 worker.list=jettybalancerworker.jettybalancer.type= lbworker.jettybalancer.balance_workers= Jetty_a, Jetty_bWorker.loadbalancer.sticky_seesion=falseWorker.loadbalancer.sticky_session_force=falseThe above information is we will configure the Tomcat server information, the SJP port number is
Combined with the previous commit. If you use different domain names, you will encounter cross-origin requests...
Combine the previous http://www.2cto.com/ OS /201511/112841.html, and continue the resources of the separation sites to the different sites
If a java site uses a tomcat server, the css, images, and js of the site must be separated. If you use different domain names, you will encounter cross-domain situations. Therefore, apache Proxy is used for separation.
Put all css, images, an
Apache + Tomcat server Load balancer configuration and tomcat server Load balancer
Apache + Tomcat server Load balancer ensures high availability and system performance, which is achieved through communication between Apache and Tomcat. There are three ways to communicate between Apache and Tomcat: Mod_Jk, HTTP_Proxy, and AJP_Proxy. Among them, Mod_Jk is the most popular, and the official documentation is also very comprehensive.
Mod_JK is a module of Apache. It communicates with Tomcat through
Apache 2.2 Here the main use of the proxy method is configured as follows:
Inin httpd.conf Remove these comments: LoadModule proxy_module modules/mod_proxy.soLoadModule Proxy_connect_module modules/mod_proxy_connect.soLoadModule proxy_ftp_module modules/mod_proxy_ftp.so [local]1[/local]LoadModule Proxy_http_module modules/mod_proxy_http.soLoadModule Proxy_ajp_module modules/mod_proxy_ajp.soLoadModule proxy_balancer_module modules/mod_proxy_balancer.so find it again . plus index.jsp modifie
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.