Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a ManagedExecutorService queue limit?

I'm using the ManagedExecutorService to process a list of jobs. I process the jobs in the main thread and execute each job with the ManagedExecutor. It's possible in the future that the job size exceeds the pool size...so I wonder, is there a queue or is an exception raised when this happens?

like image 730
VWeber Avatar asked Mar 19 '26 09:03

VWeber


1 Answers

When the number of jobs exceeds the pool size then items are added to a queue. When the queue is full, then an exception is thrown.

The details of a managed executor service can be found in the admin console under Resources -> Concurrent Resources -> Managed Executor Services -> (name of executor service)

The pool size and queue size for the default managed executor service (which has a JNDI name of
concurrent/__defaultManagedExecutorService) are both Integer.MAX_SIZE which is 2147483647.

like image 145
Jonathan Coustick Avatar answered Mar 21 '26 09:03

Jonathan Coustick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!