tomcat最大连接数

2025-10-20 23:25:29

1、下载Tomcat。

按图所示,Step by step下载Tomcat 9

tomcat最大连接数

tomcat最大连接数

tomcat最大连接数

2、解压下载的文件apache-tomcat-9.0.0.M3.zip

tomcat最大连接数

3、启动tomcat。

进入apache-tomcat-9.0.0.M3下的bin目录,双击startup.bat

tomcat最大连接数

tomcat最大连接数

4、在浏览器中的输入127.0.0.1:8080,回车。

查看tomcat是否启动成功。

看到熟悉的小猫,启动成功了!

tomcat最大连接数

5、查看tomcat服务器的最大连接数。

进入apache-tomcat-9.0.0.M3目录,打开conf目录下的配置文件server.xml

tomcat最大连接数

6、找到涉及到最大连接数的配置项:

<!--The connectors can use a shared executor, you can define one or more named thread pools-->

    

    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"

        maxThreads="150" minSpareThreads="4"/>

    <!-- A "Connector" using the shared thread pool-->

    <Connector executor="tomcatThreadPool"

               port="8080" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

tomcat最大连接数

tomcat最大连接数

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢