1、服务器最大连接数
[root@ecs-493b-0007 config]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 61550 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65535 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 61550 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
2、web网络服务器最大连接数配置
ps:tomcat
<Connector port="8080" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/home/Demo/apache-tomcat-8.5.47/tomcat.keystore" keystorePass="111111" />
<Connector port="8090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
3、应用服务数据库连接数
spring: messages: basename: enum,exception,component-errors,web-common-errors,dcm-errors datasource: druid: connection-properties: config.decrypt=false;config.decrypt.key=${publicKey} filter: config: enabled: true initial-size: 1 max-active: 10000 min-idle: 1 max-wait: 10000 pool-prepared-statements: false max-open-prepared-statements: 0 validation-query: SELECT 'X' test-on-borrow: false test-on-return: false test-while-idle: true time-between-eviction-runs-millis: 600000 min-evictable-idle-time-millis: 300000
标签:false,瓶颈,max,性能,unlimited,kbytes,排查,config,size From: https://www.cnblogs.com/wutongxiaoyuyear/p/16791158.html