How to increase threads in the JVM

I work on an alfresco server. It is built on top of Tomcat.

I wrote the following server.xml file code

I increased the database max.connection pool setting to 300.

But jconsole shows

direct streams: 120 peeks: 141

Why is this happening? I am given max threads as 290. How can I increase the value of peek threads

Thank you and welcome, Murali.

+3
source share
1 answer

Check server.xmlfor a Connector element that has a maxThreads attribute, you can increase it.

  <Connector port="8080" maxThreads="500" .... />

Thats bevause the number of threads limits the number of sessions that you can have in a web application.

+3
source

Source: https://habr.com/ru/post/1775389/


All Articles