multithreading - change the thread pool size of JVM -


i need change thread pool size of jvm . there possibility this. running high threaded jar on jvm. thats why threads goes under sleep or block stages.

the jvm doesn't have global thread pool per se. if using 1 of java.util.concurrent.executor-implementations, read on javadoc class/method. adjusted in java-code per pool have created (from code) , not related jvm.

that said, please consider each thread (typically) consumes 512k of virtual memory it's stack, limits number of maximum available threds 32-bit jvm (but doesn't sound problem @ all).

when threads block lot have kind of contention, meaning have common resource waiting for. perhaps you using "synchronized" lot? more threads won't solve problem, rather consume more resources in os , jvm.

please bit more details of code doing , how, , perhaps can bit more.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -