Profiling a Java Spring application

前端 未结 8 1209
再見小時候
再見小時候 2020-12-12 20:11

I have a Spring application that I believe has some bottlenecks, so I\'d like to run it with a profiler to measure what functions take how much time. Any recommendations to

8条回答
  •  自闭症患者
    2020-12-12 20:26

    You can use an open source java profiler such as Profiler4J:

    http://profiler4j.sourceforge.net/

    or Netbeans comes with a built in profiler and Eclipse also has profiling capabilities, however I found Profiler4J easier to use since it has a nice graph showing you the most time consuming methods.

    This works well in STS (eclipse), just follow the instructions on the site.

提交回复
热议问题