• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the best tool for code profiling?

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I am working on a web based application and I am said to search for profiling tools.

When I was searching I found a lot of profiling tools here http://java-source.net/open-source/profilers

I don't know which one to choose. Since I am coding a web application I think I have to use a profiler which monitors web applications. My server is tomcat and I am thinking to use TomcatProbe.

But again there are many profilers which monitors web applications. I asked my senior and he said check for a tool which provides maximum or all features. I searched the web like X-profiler vs Y-profiler. But could not get much out of it.

Can anyone please tell me what should I use? This is my first time I am reading about profilers and don't have much experience on profiles.

Thank you all in advance. Good day.
 
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just reading the description of a product can be confusing at first if you don't really know what you are looking for. Why don't you try downloading a few and trying them out. This way you will see what features are available and decide which ones are useful to you. Once you've done this you can then look at the descriptions of other profilers and it will be more obvious whether they meet your requirements or not.
Even the profilers that you have to pay for usually have trial versions so that you can try them out.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using JDK 6 or newer, then you could try VisualVM. It's included with the JDK - you can start it by running the command: jvisualvm
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From this post https://coderanch.com/t/454000/Performance/java/best-profiler-java I came to know that visualvm is a good tool.

But I am unable to use it. There are some graphs. I understood about GC graph, CPU usage graph. I am looking at http://visualvm.java.net/api-quickstart.html this link. Hope I will get something by today's end.

Thank you guys. It would be great-full if someone post some site which explains each and every section in the tool.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

chaitanya karthikk wrote:I am looking at http://visualvm.java.net/api-quickstart.html this link.


That's the documentation for developing VisualVM plugins. Click on the Documentation link at the top of the page and you will get (surprise, surprise) a full list of available documentation.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank Mr. Stuart. I am looking at it.
 
This tiny ad is wafer thin:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic