Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with org.apache.tomcat.util.threads.TaskQueue.take() hotspot?

I am profiling my application running on tomcat using visualvm. I am calling one of the REST web service method which creates 5000 records into HBase and returns successful and failed count to the client.

After running visualvm CPU sampler I found out that org.apache.tomcat.util.threads.TaskQueue.take() is the hotspot method. Here is the screenshot of the hotspot methods.

enter image description here

Does anyone know how to deal with this hotspot method?

like image 223
Shekhar Avatar asked Sep 10 '14 11:09

Shekhar


1 Answers

This is not a hot spot. Take a look at Self time (CPU) column - the method does not burn CPU, it just waits on a Condition object.

like image 149
apangin Avatar answered Nov 15 '22 18:11

apangin