Hi Nicolas,

Thank you for sharing your approach. Yes, defining separate pools and
setting job priorities works well when multiple servers are available.
However, on a single application server, this may not fully solve the
issue, as all jobs still run in the same thread pool, so lower-priority
tasks can still delay critical ones.

I am currently exploring a POC in the OFBiz Job Scheduler with separate
thread pools for high-priority and normal jobs. This ensures critical tasks
run immediately without being delayed by lower-priority ones. The JobPoller
routes jobs based on priority to the appropriate pool, maintaining
consistent performance even under heavy load.


Kind Regards,
Chandan Khandelwal
Senior Manager, Enterprise Software Development

*HotWax Systems*
*Enterprise open source experts*
cell: +91-98934-81076
office: 0731-409-3684
http://www.hotwaxsystems.com


On Mon, Aug 4, 2025 at 7:32 PM Nicolas Malin <[email protected]>
wrote:

> Hello Chandan,
>
> We had a similar case on a big custom project.
>
> We solve it with dedicate a different pool on different server and add a
> job priority.
>
> When a service will schedule, the service definition indicate which pool
> would be manage it and the priority help on this pool the let urgent
> treatment to go fast.
>
> Like this we define two or three pools, small and fast service, long
> treatment and reporting large user action.
>
> The code to send a job on dedicate pool isn't public at this time, and I
> think we can do better with some time to improve the service component
> with a service orchestrator.
>
> Nicolas
>
> On 30/05/2025 12:00, Chandan Khandelwal wrote:
> > Hello All,
> >
> > During recent work with OFBiz involving a large number of background
> jobs,
> > I observed a limitation in the current setup: OFBiz supports only a
> single
> > global <thread-pool> configuration in serviceengine.xml.
> >
> > This makes it challenging to manage and optimize the execution of jobs
> that
> > have different resource requirements and priorities. In high-load
> > scenarios, this can result in lower-priority tasks affecting the
> > performance of more critical jobs.
> >
> > I’m currently exploring this area and would like to understand if others
> in
> > the community have faced similar challenges. Any thoughts, experiences,
> or
> > suggestions would be helpful.
> >
> > Looking forward to your input.
> >
> >
> > Kind Regards,
> > Chandan Khandelwal
> >
>

Reply via email to