Setting the thread execution limit for multitenant mode
In multitenant mode, the 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 valve. Therefore, it should be configured in the
<PRODUCT_HOME>/repository/conf/tomcat/catalina-server.xml file as shown below.
classNameis the Java class name used for the implementation. This must be set to
thresholdgives the minimum duration in seconds after which a thread is considered stuck. Default value is 600 seconds.
This configuration works only for the servlet transport.