Tomcat: set maximum connection for particular servlet

Viewed 45

In my webapp, I have a servlet which is mostly used. I'm using Blocking IO protocol in my tomcat and set maxConnection as 150. So what happens is, that particular servlet holds all the connection and I can't load the Client side in browser.

Idea 1: I'm trying to forward the request for the particular to Connector which listens on another port. Is this possible in Tomcat?

Idea 2: Can we set maximum tomcat threadpool size for particular servlet.

Any other idea also welcome.

Note: I don't want to use any other tool like nginx

Thanks in advance.

0 Answers
Related