Hello Lakshani,

thank you for your suggestion, I have already tried it before I read your 
message and it worked. The key was to change the threshold value in the 
catalina-server.xml instead.

Just a couple of questions if you may.


1)      What is the meaning of the MaxThreadExecutionTime if we need to change 
Tomcat’s configuration file?

2)      Is the threshold in minutes or in seconds (you said seconds, this is 
why I am asking).

Regards

Panos

From: Lakshani Gamage [mailto:laksh...@wso2.com]
Sent: Wednesday, November 16, 2016 5:33 PM
To: Panagiotis Konstantinidis
Cc: dev@wso2.org
Subject: Re: [Dev] How to increase the maximum thread timeout.

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 
<pkonstantini...@cognity.gr<mailto:pkonstantini...@cognity.gr>> 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
Dev@wso2.org<mailto:Dev@wso2.org>
http://wso2.org/cgi-bin/mailman/listinfo/dev



--
Lakshani Gamage
Software Engineer, WSO2

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

Reply via email to