joeferner / node-java

Bridge API to connect with existing Java APIs.
MIT License
1.87k stars 280 forks source link

Thread pool issue #308

Open dustinth opened 8 years ago

dustinth commented 8 years ago

I use node-java heavily in my project, I found that if I run more than 4 long running async call to java method, other call will be blocked until previous task finished. I try to increase UV_THREADPOOL_SIZE but it seems not working.

13661172102 commented 4 years ago

I meet this question, too. Whatever the UV_THREADPOOL_SIZE i have setted, the jvm handler threads num is always 4.

13661172102 commented 4 years ago

image

JTBS commented 9 months ago

@dustinth or @13661172102 or anyone around: I am not finding this issue applicable any more - at least based on my testing:

I don't see JVM somehow limit itself to only 4 threads, even though actual thread pool size is more and there are more concurrent requests submitted. Based on node thread CPU time - it seems all threads are utilized by JVM.

Can someone please confirm my findings OR confirm that this issue is no longer valid with recent versions - may be very older versions had this behavior? Any insight is appreciated

13661172102 commented 9 months ago

您好,我是陆泽,邮寄已收到,谢谢