Open Source Java Profilers

2019-01-01 10:33发布

What can you guys recommend to use with Java?

Only requirement is it should be open source, or has not too expensive academic licence .

标签: java profiler
11条回答
若你有天会懂
2楼-- · 2019-01-01 11:06

The VisualVM which comes with jdk6 has a basic profiler inside it. VisualVM is provided with the jdk, so if you have the jdk6 installed, you likely have it installed as well.

https://visualvm.github.io/

查看更多
后来的你喜欢了谁
3楼-- · 2019-01-01 11:07

The open-source tool jvmtop does include a basic console profiler. Example output:

 JvmTop 0.7.0 alpha - 15:16:34,  amd64,  8 cpus, Linux 2.6.32-27, load avg 0.41
 http://code.google.com/p/jvmtop

 Profiling PID 24015: org.apache.catalina.startup.Bootstrap

  36.16% (    57.57s) hudson.model.AbstractBuild.calcChangeSet()
  30.36% (    48.33s) hudson.scm.SubversionChangeLogParser.parse()
   7.14% (    11.37s) org.kohsuke.stapler.jelly.JellyClassTearOff.parseScript()
   6.25% (     9.95s) net.sf.json.JSONObject.write()
   3.13% (     4.98s) ....kohsuke.stapler.jelly.CustomTagLibrary.loadJellyScri()
查看更多
与君花间醉酒
4楼-- · 2019-01-01 11:08

JVM Monitor is a Java profiler integrated with Eclipse to monitor CPU, threads and memory usage of Java applications.

If further deep analysis is needed, you may use other tools (e.g. TPTP, Memory Analyzer) as a next step.

查看更多
高级女魔头
6楼-- · 2019-01-01 11:12

Java has a basic built in profiler called HProf. I find it useful to compare the results it provides with results from more fully features profilers.

查看更多
登录 后发表回答