3 Replies Latest reply on Jul 17, 2017 9:25 AM by cfang

    jberet standalone and pool size

    mistrz_7

      Hello,

       

      Jberet standalone runs jobs asynchronously too. So is possible to configure batch pool size for standalone mode?

       

      Regards

      sw

        • 1. Re: jberet standalone and pool size
          cfang

          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

            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

              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.