When it comes to web applications, users are free to experiment and package their own pooling framework such BoneCP.
Setting the thread execution limit for multi-tenant mode
In multi-tenant mode, the Carbon runtime limits the thread execution time. That is, if a thread is stuck or taking a long time to process, Carbon detects such threads, interrupts and stops them. Note that Carbon prints the current stack trace before interrupting the thread. This mechanism is implemented as an Apache Tomcat Value as shown below.
<Valve className="org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve" threshold="600"/>
classNameis the Java class name of the implementation. This must be set to
thresholdgives the minimum duration in seconds after which a thread is considered stuck. Default is 600 seconds.