In Embedded Tomcat, how can I configure the number of request threads?
I can't seem to get it to work. I tried all of these without success:
- tomcat.getConnector().setProperty("maxThreads", "20");
- tomcat.getConnector().setAttribute("maxThreads", "20");
- tomcat.getConnector().setAttribute("maxThreads", 20);