How to find most time consuming method with java mission control? (not specificly CPU)

412 Views Asked by At

I have a spring batch app that's runs on tomcat 8.5. This batch works with lots of data such as ten Million records and it is too slow. I want to find most time consuming parts such as database queries E.G, socket IO, thread blocking or waiting, CPU consuming, or garbage collection that maybe slows down the app. I 'm mostly suspicious to jdbc queries E.G, socket IO. I tried to use local partitioning to scale it up and give more memory to tomcat and increase commit interval in spring batch settings. I had a look at socketIO tab in Jmc and logged execution time of one of the methods it shows,but it only takes 15 up to 30 milliseconds. Another problem is that Jmc only shows percentages not exact time. So, I could not figure out how long it takes. I'm a little confused.
Thanks too much in advance.

0

There are 0 best solutions below