Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuba.backgroundWorker.maxActiveTasksCount does not work #3097

Closed
SevostyanovArseny opened this issue Nov 24, 2020 · 1 comment
Closed

cuba.backgroundWorker.maxActiveTasksCount does not work #3097

SevostyanovArseny opened this issue Nov 24, 2020 · 1 comment
Assignees
Labels
state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.11 Fixed in version ver: 7.3.0 Fixed in version
Milestone

Comments

@SevostyanovArseny
Copy link

SevostyanovArseny commented Nov 24, 2020

Environment

  • Platform version: 6.2+

Description of the bug or enhancement

com.haulmont.cuba.web.gui.executors.impl.WebBackgroundWorker#executorService has LinkedBlockingQueue with Integer.MAX_VALUE capacity as a work queue, therefore new worker threads will never be added (since standard java ThreadPoolExecutor does not add new worker threads until its queue is full)

@knstvk knstvk added the type: bug Something isn't working label Nov 30, 2020
@knstvk knstvk added this to the Release 7.2 milestone Nov 30, 2020
@haulmont-git haulmont-git added the ver: 7.3.0 Fixed in version label Dec 22, 2020
@haulmont-git haulmont-git added the ver: 7.2.11 Fixed in version label Dec 22, 2020
@andreysubbotin
Copy link
Contributor

andreysubbotin commented Dec 22, 2020

We can't make a scalable thread pool executor with threads from min to max based on workload. So we use a fixed thread pool as a solution.
Properties cuba.backgroundWorker.minBackgroundThreadsCount and cuba.backgroundWorker.maxActiveTasksCount are depricated now. Only cuba.backgroundWorker.minBackgroundThreadsCount property works.

Use property cuba.backgroundWorker.backgroundThreadsCount for background tasks threadpool configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.11 Fixed in version ver: 7.3.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

5 participants