Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How expensive are Java (Solr) thread dumps?

Tags:

java

solr

As part of some ongoing maintenance, we have been taking regular thread dumps for all threads in the JVM at a one minute interval. (E.g. curl http://localhost:8983/solr/admin/threaddump.jsp)

What are the performance / other negative impacts of continuing this practice indefinitely?

like image 743
Ryan Roemer Avatar asked Nov 13 '22 15:11

Ryan Roemer


1 Answers

Generally, JVM thread dumps are cheap, low impacting, regardless of the applications. Jmap -histos on the other hand, can be very performance impacting. I work in maintance, we do a lot of thread dumps, never seen a direct crash caused by thread dumping.

The only problem with running dumps once a minute is too much information.

Are you appending the dump to a separate file? In my experience you have to look at dumps over time to catch things like transient lock contention.

like image 109
KaizenSoze Avatar answered Dec 14 '22 02:12

KaizenSoze