Is it possible to configure tomcat to use a predefined number of threads for each application? Going behind this is if I distribute several applications on tomcat and allow me to assume that one of them has an error that leads to a deadlock.
What will happen is that this application will force tomcat to create new threads until it reaches the maxThreads setting. After that, threads cannot be created, which also affect other applications. It would be nice to tell tomcat something like "hey, you can only serve 50 threads per application." If then the deadlock application reaches 50 threads, it will be blocked, but the rest of the applications will be saved.
THX
Cook
source share