Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best and safest Java Profiler for production use? [closed]

I'm looking for a Java Profiler for use in a very high demand production environment, either commercial or free, that meets all of the following requirements:

  • Lightweight integration with code (no recompile with special options, no code hooks, etc). Dropping some profiler specific .jars alongside the application code is ok.
  • Should be able to connect/disconnect to the JVM without restarting the application.
  • When profiling is not active, no impact to performance
  • When profiling is active, negligible impact to performance. Very slight degradation is acceptable.
  • Must do all the 'expected' stuff a profiler does - time spent in each method to find hotspots, object allocation/memory profiling, etc.

Essentially I need something that can sit dormant in production when everything is fine without anyone knowing or caring that it is there, but then be able to connect to it hassle (and performance degradation) free to pinpoint the hard to find problems like hotspots and synchronization issues.

like image 555
Peter Avatar asked Aug 26 '10 00:08

Peter


People also ask

Is it good idea to use profilers in prod?

You can do it in production low overhead. To overcome some of the practical issues around doing it, you should profile all the time, and it makes life a lot easier. By profiling all the time, it not only solves your practical issues from before, but actually opens up a whole bunch of new capabilities as well.

Is YourKit Java profiler free?

YourKit offers both paid licenses for commercial use, with a free trial, and lower cost or free licenses for non-commercial use.

Is JVM a Java profiler?

It is a JVM-based tool that works at runtime. The JMC provides JMX (Java Management Console ), JFR (Java Flight Recorder), and many other plugin tools. The JMX is useful for monitoring and managing the Java application, and JFR is a profiler.


1 Answers

Have you tried YourKit? It has almost all of the features you are looking for.

like image 191
Behrang Avatar answered Oct 11 '22 14:10

Behrang