use an executorPool for runAsync

Description

The runAsync() BIF creates a NEW single executor thread pool for every execution

https://dev.lucee.org/t/unable-to-create-new-native-thread-after-high-volume-runasync/7864

Adobe has the following server settings

  • Core pool size: Core pool size is the minimum number of worker threads to keep alive. The value should be less than the value specified in Maximum Pool Size. The default value is 25.

  • Maximum pool size: Maximum number of threads that can ever be available in the pool. The default value is 50.

  • Keep alive time: Timeout in milliseconds for idle threads waiting for work. Threads use this timeout when there are more than the corePoolSize present in the pool. The default value is 2000 ms.

https://helpx.adobe.com/au/coldfusion/using/asynchronous-programming.html

relates to

Activity

Show:

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 17 February 2023 at 03:04
Updated 17 February 2023 at 03:22

Flag notifications