wood burning stoves 2.0*
The moose likes Performance and the fly likes I just don't get this JProfiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "I just don Watch "I just don New topic

I just don't get this JProfiler

ashwin bhawsar
Ranch Hand

Joined: Mar 16, 2011
Posts: 62

I have been trying to figure out how to use JProfiler.The manual is too big, too confusing and I don't know where to start. I just want to do a simple thing, i have written a very basic java program and i want to check how efficient it is.

I just want to know the following things in my program :

  • how much heap/stack memory each variable is taking
  • How much time its taking to execute a loop.
  • How much time it takes to execute a method.
  • How much heap memory my array is taking.
  • How much time it is taking to read/write to a file is taking.
  • Has the explicit casting that i use in my program making any difference or not .

  • I could not find any tutorials for Jprofiler.
    Someone please guide me in the right direction.
    steve souza
    Ranch Hand

    Joined: Jun 26, 2002
    Posts: 860
    I haven't used jprofiler, but visualvm comes with the jdk and does a lot of what you are asking. It is relatively straightforward too.

    http://www.jamonapi.com/ - a fast, free open source performance tuning api.
    JavaRanch Performance FAQ
    steve souza
    Ranch Hand

    Joined: Jun 26, 2002
    Posts: 860
    You could also try appdynamics lite which is free: http://litedocs.appdynamics.com/display/ADLite/Get+started+With+AppDynamics+Lite
    Consider Paul's rocket mass heater.
    subject: I just don't get this JProfiler
    Similar Threads
    java heap size error
    How to take memory heap dump snapshot in java
    JProfiler Help Needed
    Using profiling tool while load testing the appication
    High memory consumption, but empty heap