tags:

views:

131

answers:

4

Hello

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?

Thanks in advance.

+1  A: 

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 .....

http://stackoverflow.com/questions/2422289/any-recommended-java-profiling-tutorial http://stackoverflow.com/questions/14762/please-recommend-a-java-profiler

Tansir1
Thank for answeris there any tool that can i use in the command prompt
Sunil
+2  A: 

All these Java profiling tools can be used in Linux:

Bruno Rothgiesser
YourKit and JProfiler are really good indeed
Bozhidar Batsov
Thanks for answercan i use it on command prompt.
Sunil
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.
Bruno Rothgiesser
+2  A: 

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
thanks for answerI want to profile on command prompt.
Sunil
A: 

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