JVM Set up
Nodes , Every tomcat Expected treatment 500 A link , Then the maximum number of long connections in the connection pool is 2000.
Full node replication (DeltaManager) Number of mode cluster nodes 3-6 It is advisable to .
Primary and secondary replication (BackupMnagager) The mode cluster node can go to 10 Table above .
Connector Set up
There are three modes :
①JAVA BIO, Blocking mode , The most original and stable ,SSL be based on JSSE, It's also tomcat7 Previous default mode , It supports smaller concurrency . High concurrency, but short links are also preferred .BIO There is a very important parameter in mode ,maxThreads, Represents the maximum number of simultaneous requests , The general range is 200-800, It can be downloaded from 400 Began to set , If it is CPU Intensive applications can reduce , If it is right or wrong CPU Intensive applications can increase .
②JAVA NIO, Non-blocking mode ,SSL be based on JSSE, The reception of the connection 、 Read and write are done by special threads , yes tomcat8 Post default mode , It supports large concurrent multi link processing . High concurrent long connection preferred .
③Native APR, Non-blocking mode , It's a pattern of using native code to improve performance , It consists of C++ To write ,SSL Is based on OpenSSL. It supports larger concurrency, more link handling .
Generally only JAVA BIO And JAVA NIO Switch between , It's easy to switch between them SSL, Because the implementation is based on JSSE, also Native APR It could be unstable on some machines .
tomcat More articles on key parameters setting of production deployment
- tomcat Production deployment key parameter settings
JVM Set up Nodes . every last tomcat It is estimated that 500 A link , Then the maximum number of long connections in the connection pool is 2000. Full node replication (DeltaManager) Number of mode cluster nodes 3-6 It is advisable to . Primary and secondary replication (BackupMnagag ...
- JVM Memory model and key parameter settings
One . JVM Memory model : Jvm Memory model is to learn Java A very important part , This part of learning can let us in the system operation and maintenance , Or there are ways to optimize the server , Understand the principle . Two . Jvm The key parameters : 1. Heap size setting parameters : -Xm ...
- Kafka Key parameter settings
Used in a production environment Kafka, Parameter tuning is very important , and Kafka Many parameters , our java Of Configuration In the code , The frequently set parameters are as follows : Properties props = new Properti ...
- HTML5+AJAX The key parameter setting of native block upload file
processData:false This is a jquery.ajax A parameter of . The default value is true, The representation automatically turns a non string object into k1=v1&k2=v2 In the form of , For example, an array parameter {d:[1,2]}, To service ...
- nginx Common parameter settings for general website deployment
#user nobody;worker_processes 2; #error_log logs/error.log;#error_log logs/error.log notice;#error_l ...
- tomcat Description of parameter setting at startup
Use Intellij idea Its launch tomcat Will be configured to start vm options :-Xms128m -Xmx768m -XX:PermSize=64M -XX:MaxPermSize=512m. ...
- Tomcat Performance parameter settings
Tomcat Performance parameter settings Tomcat Performance parameter settings Blog classification : Java LinuxTomcat Network application multithreading Socket The default parameters are not suitable for production environments , So you need to modify some parameters 1. Modify memory parameters at startup . and ...
- Tomcat in JVM Parameter setting
Tomcat It can't run directly on the computer itself , Need to rely on hardware based operating system and a Java virtual machine .Tomcat The essence of memory overflow is JVM out of memory , So at the beginning of this article , It should be done first JavaJVM Knowledge of memory ...
- 170310、Jenkins Deploy Maven Multiple environmental projects (dev、beta、prod) Parameter Settings
Use Jenkins To configure Git+Maven Automatic construction of : http://blog.csdn.net/xlgen157387/article/details/50353317 In a project with multiple development and production environments ...
Random recommendation
- js Stop bubbling and jquery Examples of preventing event bubbling
js To prevent a bubble In the process of preventing bubbling ,W3C and IE The different methods used , So we have to do the following . Copy code The code is as follows : function stopPro(evt){ var e = evt || window ...
- Algorithm - Find the least common multiple of two natural numbers (C++)
//************************************************************************************************** ...
- java Type transfer json Format
json-lib-2.4-jdk15.jar List<People> mapPersonTypes = null; private JSONArray json_mapPersonTyp ...
- Watch OS2.0 Development Overview
( notes : Respect the fruits of labor , Reprint please indicate the source http://www.cnblogs.com/xiaochunle/p/4620230.html ) Watch OS 2.0 Time Beijing time. 2015 year 6 month 9 Japan ,WW ...
- Ejb The remote invocation -jboss The server calls the server -Bean call Bean
English reference address https://docs.jboss.org/author/display/AS71/Remote+EJB+invocations+via+JNDI+-+EJB+client+API+o ...
- IOS Choose membership
Choose membership For all Apple Platform development has never been easier . Start to work for macOS.iOS.tvOS and watchOS Development app, Please from Mac App Store download Xcode. If you are ready ...
- Fatal error encountered during command execution
MySQL + .net + EF development environment , Call one sql Statement error : Fatal error encountered during command execution[sql] view plain ...
- Valotile Keyword details
In understanding valotile Before keywords . Let's start with other related concepts . 1.1 java Memory model : Different platforms , The memory model is different , We can understand the memory model as under the specific operation protocol , Read and write access to specific memory or cache ...
- Code cloud plug-in Gitee:Couldn't get the list of Gitee repositories
20:02 Couldn't get the list of Gitee repositories Can't get available repositories Not Found
- 【centos】centos Command summary ( Continuous updating )
1. View the system version command from :https://blog.csdn.net/networken/article/details/79771212 . View kernel version [[email protected] ~]# u ...