Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
Improve this question
I want to automate our field case analysis.
We sometimes get HPROF files from crashes of our product in production, and look for "typical" problems we know of. Examples:
specific threads creating problems
specific classes filling up the heap
etc.
Currently the HPROF analysis is done manually.
I want to automate that.
Does anyone know of a good Java profiler who allows that? I know Yourkit and JProfiler quite well, and am unaware of such features.
Thank you!
You can find something in VisualVM. It integrates the OQL scripting engine and allows you to persist your own queries so you can easily run them against various heap dumps. However, it is not yet ready for headless analysis.
The OQL implementation in VisualVM is based on the one you can find in jhat and it means that it is javascript based - in addition to "standard" OQL queries it allows you to use plain javascript thus increasing the flexibility many times.
There are few examples of the javascript analysis bundled with VisualVM or you can use the user mailing list to get help.
Cheers!
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a application that is deployed on tomcat container.
I'm running the jmeter load (x threads with HttpRequests).
then I'm looking on TPS, latencies, cpu, and memory (through jmx).
I'm looking for a automatic way to do all this, and may be better.
Any good references, blogs, articles, maybe some github sources is appresiated
You'd really need to be more specific about what you would like to automate, running the test, analyzing the results, monitoring your AUT or?
That said, you could try this: https://github.com/oliverlloyd/jmeter-ec2. This will automate test execution using remote hosts which can be useful to some people in some scenarios.
Ehm so are you searching for what exactly? I was using JProfiler and it was very efficient for me. I recorded measurement data from my app which i could analyze on the fly and afterwards as well. But i'm not sure if this is what you need. "Automatic stress test". Maybe you could run a bunch of Selenium tests while running JProfiler? Will you use commercial or do you prefer 'free' (sorry for the term) tools?
Have fun anyway :)
Dave
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I need to manipulate control flow graphs for Java code in a project. What might be a good java library to generate control flow graphs in Java. So far I have found a couple eclipse plugins (heavily dependent on eclipse APIs) and standalone tools (cannot embed in my code).
A tool to do this stuff is Soot, and this questions is a duplicate of Tool for generating control flow in Java
I'll throw another tool into the mix.
Atlas is an Eclipse plugin that enables program analysis. It has a querable graph database that includes the control flow graph (as well as data flow and other relationships).
jSonde will create sequence diagrams from your actual running code (which is arguably more useful than from source, since source analysis will not show implementation-specific functionality).
javacalltracer does something similar.
Most tools are integrated into Eclipse/similar so they have access to the AST, which makes such things pretty trivial.
It's actually not ridiculously complex to pull the information from byte code yourself (and it's an interesting exercise). Or instrument using AspectJ and create the runtime information yourself.
Edit Original answer, still valid.
JGraph is open-source, and pretty cool.
JDiagram is a Swing component, commercial product.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm writing the code to access and download data from some web sites using HTMLUnit.
I was wondering whether a tool that could help me exists. I think maybe to a visual tool, something that lets you express the path you want to follow on the web sites visually and generates the Java code.
I'd like something for HTMLUnit, but I'm open to other solutions.
Writing screen-scraping code gets very repetitive :(
I used to work at screen-scraper. Not sure if it's quite what you're looking for, but it's definitely a powerful tool for building web-scraping scripts.
Not exactly visual tools, but maybe you could use something like JMeter or The Grinder for recording navigation scripts of web pages. They surely are easier to use than writing all the input requests by hand in HTMLUnit.
There is only one tool that does exactly this - and does it very very well - but it's highly expensive, since their technology is amazing. Some of the biggest companies uses this. I think you might be able to get a free trail, if you want to try it out. http://kapowsoftware.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am building a j2ee web application with a MySQL db.
I need to whip up some reports, and slice and dice the data in various ways.
Is it best to tackle each report requirement, write the code to serve up the data?
Or, is there a framework I should look into?
Take a look at JasperReports (http://www.jasperforge.org). You can integrate it into your Java app or use it as a stand-alone reporting application along the same lines as Crystal Reports.
It's hard to give a precise answer as you didn't give many details so I'd just suggest to have a look at JasperReport (and iReport), Eclipse Birt or Pentaho Report.
This thread will give you some information on the differences between them. Or Google a bit.
recommend ireport, a sub-project in JasperReports
http://jasperforge.org/plugins/project/project_home.php?projectname=ireport
You might also want to look at Docmosis since you can do a lot of the work in the templates which are just doc or odf documents. You can't do everything in Docmosis but typical report stuff can be done faster little code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I need to find out the time a function takes for computing the performance of the application / function.
is their any open source Java APIs for doing the same ?
You're in luck as there are quite a few open source Java profilers available for you.
Take a look at the official TPTP plugin for Eclipse. This pretty much does all you describe and a (frikkin') whole lot more. I can really recommend it.
I don't know if there are APIS, but you normally use the funciton currenttimemillis for that... You measure the time at the beggining, then again at the end of the execution and voila!!! you got your time substracting
Hiperic provide a GPLv2 licenced tool for monitoring all sort of system resources called SIGAR (System Information Gatherer and Reporter).
This tool is used to provide things like adaptive load balancing in GridGain (a grid computing framework).
http://www.hyperic.com/products/sigar.html
Have a look to this question : Which java profiling tool do you use and which tool you think is the best ?
If it's just one function you care about, wrap a million-iteration loop around it, and time it with a stopwatch. Then seconds translate to microseconds.
On the other hand, if you want to speed it up, all you need is this.