Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat Thread Pooling  RSS feed

 
Shashank Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a J2EE application with tomcat as appliation server and ApacheHttpd as web server. How can i achieve threadpooling using Tomcat, and does a thread loses its state once it is returned to the thread pool.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses a thread pool already. You can control the number of threads allowed with the minProcessors and maxProcessors values. You can change these in the server.xml file, which is described well by this guy:

Demystifying server.xml
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!