问题
I am performing load test on JMeter for webbased application, and i have to get CPU Utilization, Memory Utilization, number of Threds. For this i am using VisualVM. Is there any way we can get as Report in the form of XLS or CSV or any other format we can give to the Customer.
Could you pleasee help me on this or otherwise is there any other Performance tool we can get CPU,Memory utilization?
-- Thanks, Raghu.ch,
回答1:
You can use Tracer plugin with various probes. Tracer can export data in CSV, HTML or XML.
回答2:
Using Java VisualVM 1.8, you can generate any of several formats, including CSV, from a snapshot.
Your CSV file will look something like this:
"Class Name - Live Objects";"Live Bytes [%]";"Live Bytes";"Live Objects"
"char[]";"24.76%";"237499352";"1472791"
"byte[]";"12.27%";"117657848";"80945"
...
For the specific data you mentioned, it looks like you will need to download one or more of the Tracer plugins that Tomas Hurka mentioned. You can do this from the Java VisualVM GUI via Tools -> Plugins.
After restarting the tool, you can save to various formats.
来源:https://stackoverflow.com/questions/14683852/visualvm-reporting