I am using Java visualvm for purpose I am facing two issues:
1) As the statetd in the document
When a new local Java application is launched, the node that appears under the local node for the application node disappears when the application ends.
This happens to me when I run my Java application, it runs for seconds. VisualVm shows this PID but when my program stops, this PID also disappears.
How can I solve this problem?
Secondly, I run the main function which contains the call of other functions in other classes. I also want to calculate the time for those tasks. How can I get this work?
- There is no problem when the Java process is finished so you can not connect it .
- You can run the same code 1000 times and you can create snapshots in VisualWombe to analyze memory, computations etc. Results from you 1000
This gives you better results (taking 1,000 runs and taking on average), since single run can take different time in each run.
No comments:
Post a Comment