Search code examples
javamultithreadingthread-safetythreadpooljvisualvm

Threads from Java Program


I run java program in debug mode using visualvm. I know my methods in the program are called from Main method but I have no idea why there are other threads. Is there a way I can reduce those threds?

visualvm result

enter image description here


Solution

  • As suggested by those method names, they are threads started by MS SQL Server JDBC Connector for timeout checking(your sql request may went lost and without timeout checks, you could be blocked in a SQL request forever). They are started for your goodness and you should not try to stop/reduce them.