Hi Panos,

Can you please try changing threshold value of *<Valve
className="org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"/>* in <AS_HOME>/repository/conf/tomcat/catalina-server.xml
accordingly to your task completance time. Threshold is in minutes.

Regards,
Lakshani.

On Wed, Nov 16, 2016 at 8:38 PM, Panagiotis Konstantinidis <
[email protected]> wrote:

> Hello,
>
> we are using WSO2 AS Server 5.3. We have a long running task in the
> database which takes more than 20 minutes to complete. During this time the
> server throws a ThreadDeath exception (since it detects a stuck thread) and
> is killing the thread that deals with the database.
>
> How can I increase the maximum thread timeout? I have tried to modify the
> carbon.xml and change the
>
>     <!-- The Max time a thread should take for execution in seconds -->
>     <MaxThreadExecutionTime>600</MaxThreadExecutionTime>
>
> to 1800 (half an hour) but it seems that this makes no difference
> whatsoever to the thread timeout. The server keeps killing the thread
> before this timeout is reached.
>
> Is there any other flag I can use? I would appreciate any help on this
> issue.
>
> Regards
>
> Panos
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Lakshani Gamage

*Software Engineer, WSO2*

*Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
*Blog : http://lakshanigamage.blogspot.com/
<http://lakshanigamage.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to