- 
        1. Threading issue on AS 6asiandub Feb 8, 2011 10:01 AM (in response to asiandub)1 of 1 people found this helpfulupdate: what we implemented as a quick workaround: - set priority of current thread to minimum - perform heavy work - set priority of current thread back to normal (in a finally block) works pretty much as expected - but feels like a quick and dirty hack... any better suggestions? cheers, Jan 
- 
        2. Re: Threading issue on AS 6asiandub Mar 21, 2011 9:54 AM (in response to asiandub)it seems like not too many people are having issues with threads ;-) Anyhow, should someone be confronted with a similiar situation, here's my conclusion: - the described way works pretty good and stable, even under production load (internal application, max 10 parallel users) - re-adjusting the priority after "heavy work" is finished is certainly good style, but probably not required, as the default keep-alive time of a thread (see default configuration below) is one minute. So my doubt that all threads will be downgraded after a while is false - no thread will be kept alive and idle longer than one minute... <mbean code="org.jboss.util.threadpool.BasicThreadPool" name="jboss.system:service=ThreadPool"> <attribute name="Name">JBoss System Threads</attribute> <attribute name="ThreadGroupName">System Threads</attribute> <attribute name="KeepAliveTime">60000</attribute> <attribute name="MaximumPoolSize">10</attribute> <attribute name="MaximumQueueSize">1000</attribute> <attribute name="BlockingMode">run</attribute> </mbean> - in case that finer adjustments are required: the jmx console allows to dump all current threads, this should give a good overview of what's going on at the moment. Hope it helps others :-) cheers, Jan 
