-
1. Re: jberet standalone and pool size
cfang Jul 14, 2017 10:53 AM (in response to mistrz_7)JBeret standalone (in Java SE environment) uses standard java Executor Service, so you can configure it in jberet-install-dir/bin/jberet.properties, which contains properties matching relevant executor service properties (e.g., thread-pool-core-size, thread-pool-queue-capacity, thread-pool-max-size, etc).
-
2. Re: jberet standalone and pool size
mistrz_7 Jul 17, 2017 8:59 AM (in response to cfang)I have problem with settings in jberet.properties file. I would like to put to the queue about 50 tasks. At this same time only 3 should be active, and rest should waits in the queue. As I undestand then settings are more important:
thread-pool-type = Configured
thread-pool-core-size = 100
thread-pool-queue-capacity = 100
thread-pool-max-size = 100
But how to set it to my requirments?
Regards
sw
-
3. Re: jberet standalone and pool size
cfang Jul 17, 2017 9:25 AM (in response to mistrz_7)can you try thread-pool-core-size = 5 ? JBeret reserves some threads out of the thread-pool-core-size internally, so the value of thread-pool-core-size should be slightly higher than the number of tasks that you want executed immediately.