Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在露天服务器上工作。它建立在Tomcat之上。
我在 server.xml 文件中编写了以下代码
我将数据库 max.connection 池设置增加到 300。
但是 Jconsole 显示的是
实时线程:120 窥视线程:141
为什么会这样?我的最大线程数为 290。如何增加 peek 线程值
谢谢和问候,壁画。
检查您server.xml的 Connector 元素,它有一个属性 maxThreads,您可能想要增加它。
server.xml
<Connector port="8080" maxThreads="500" .... />
那是因为线程数限制了您在 Web 应用程序中可以拥有的会话数。