B4J Question Max number of threads with jShell

jmon

Well-Known Member
Licensed User
Longtime User
Hello,

What is the maximum of concurrent tasks when running jShell with async results? I run into out of memory errors when submitting multiple tasks in a loop.

Thanks
Jmon.
 

jmon

Well-Known Member
Licensed User
Longtime User
Thank you,

Good to know. But I execute more than 30.000 commands in a loop and that floods the JVM anyway.

I chose a different path. I add all the commands to a list and only process 8 at a time. I use a timer to check every 100ms to check if I any of the 8 command is finished and execute a new one if possible. This is good enough for what I need.

Thanks again.
 
Upvote 0
Top