19

I want to run a java program on a linux server in profiling mode.

Is there any profiling tool that can profile a java program on a Linux server in command prompt?

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
Sunil
  • 4,133
  • 6
  • 23
  • 21

4 Answers4

8

All these Java profiling tools can be used in Linux:

b.roth
  • 9,421
  • 8
  • 37
  • 50
  • 1
    Sunil, HPROF and JRat are command-line tools. The other ones - as far as I know - are GUI only. But all these tools can all profile GUI and command-line applications. – b.roth May 27 '10 at 15:50
7

JVisualVM is a very basic profiling tool that comes with the official JDK from Sun.

http://java.sun.com/javase/6/docs/technotes/tools/share/jvisualvm.html

EDIT: Also see .....

Any recommended Java profiling tutorial? https://stackoverflow.com/questions/14762/please-recommend-a-java-profiler

Community
  • 1
  • 1
Tansir1
  • 1,789
  • 2
  • 15
  • 28
4

http://profiler.netbeans.org/

Profiler

NetBeans profiler is a module to provide a full-featured profiling functionality for the NetBeans IDE. The profiling functions include CPU, memory and threads profiling as well as basic JVM monitoring, allowing developers to be more productive in solving memory or performance-related issues.

bakkal
  • 54,350
  • 12
  • 131
  • 107
1

InMemProfiler can be used at the command line to profile memory allocations. Live vs collected allocations can be tracked and collected objects can be split into buckets based on their lifetimes.

In trace mode this tool can be used to identify the source of memory allocations.

mchr
  • 6,161
  • 6
  • 52
  • 74