Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Bjorn Danielsson
In my opinion this is a bit overkill, at least the options for using DelayQueue and PriorityBlockingQueue. They require the Runnable queue elements to implement the Delayed and Comparable interfaces, respectively. I don't see how to make use of that in an EJB method call. I looked at the Sun

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Romain Manni-Bucau
hmm, on the jvm implementation i personnaly think it is a good implementation but the unbounded linkedblockingqueue case is not the one for which the impl was designed IMO that's why it sounds strange i think. about the conf i prefer to not switch to synchrous queue too easily since it can

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Romain Manni-Bucau
yeah it works as expected but it is not what we (often) want, typically RejectedExecutionException are an issue in fact that's the only difference between all cases: when will RejectedExecutionException be thrown the linked case is the one avoiding it the more (but using more memory).. solution

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread David Blevins
On Aug 21, 2012, at 2:18 AM, Bjorn Danielsson wrote: In my opinion this is a bit overkill, at least the options for using DelayQueue and PriorityBlockingQueue. They require the Runnable queue elements to implement the Delayed and Comparable interfaces, respectively. I don't see how to make

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Bjorn Danielsson
Great! I'll give it a try when you update. I use @Timeout also, but I haven't been stress-testing that stuff as much yet. According to the docs, PriorityBlockingQueue is always unbounded, so at least one other queue type would be needed if bounded queues are to be an option (making

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread David Blevins
On Aug 21, 2012, at 11:27 AM, David Blevins wrote: On Aug 21, 2012, at 2:18 AM, Bjorn Danielsson wrote: In my opinion this is a bit overkill, at least the options for using DelayQueue and PriorityBlockingQueue. They require the Runnable queue elements to implement the Delayed and

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Romain Manni-Bucau
AsynchronousPool.KeepAliveTime *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/8/20 zeeman hamz...@fastmail.us Great, thanks. -- View this message in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Bjorn Danielsson
://rmannibucau.wordpress.com* 2012/8/20 zeeman hamz...@fastmail.us Great, thanks. -- View this message in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Bjorn Danielsson
in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Romain Manni-Bucau
. -- View this message in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread David Blevins
* *Blog: http://rmannibucau.wordpress.com* 2012/8/20 zeeman hamz...@fastmail.us Great, thanks. -- View this message in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html Sent from the OpenEJB User mailing list

Re: Number of simultaneous @Asynchronous threads

2012-08-19 Thread Romain Manni-Bucau
weird it was 10, by defaukt we were between 10 and 20... btw here is the new config(s): https://issues.apache.org/jira/browse/TOMEE-382 *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/8/19 David Blevins david.blev...@gmail.com Looks like we need

Re: Number of simultaneous @Asynchronous threads

2012-08-19 Thread zeeman
Great, thanks. -- View this message in context: http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Number of simultaneous @Asynchronous threads

2012-08-18 Thread Bjorn Danielsson
Hi guys, Is there some way to configure the size of the thread pool used for @Asynchronous execution of session bean methods? I can't get more than 10 simultaneous threads executing @Asynchronous methods, and I didn't find any obvious setting for this in tomee.xml or service-jar.xml. Version

Re: Number of simultaneous @Asynchronous threads

2012-08-18 Thread David Blevins
Looks like we need to add a config property for it. Easy change -- will add it tomorrow unless Romain beats me to it (on my phone). On Saturday, August 18, 2012, Bjorn Danielsson wrote: Hi guys, Is there some way to configure the size of the thread pool used for @Asynchronous execution of