I have an application written in Anylogic (mathematical modeling program that is written in Java and compiles its models into Java applications). I use VisualVM for my code optimization.
Sampling tool from VisualVM works without any problems. But I can’t do Profiling of my application (with start attribute -noverify) and it seems to me that this is due to its size. If my application is small (1-2 agent instances of the class), then Profiling works and even collects statistics. But with a larger application (about 30-40 instances of the class), the main window of Proflling VisualVM freezes and writes “Profiler Busy 50%” in the status bar. The application also freezes. After that, VisualVM writes that the application is not responding.
Profiler busy
The number of profiling methods is 5,375 (I don’t know if it’s a lot or a little). When this is specified, Exclude Outgoing calls for: java., javax., jdk., com.sun., sun., sunw., apple.laf., apple.awt., com.apple., org.omg.CORBA., org.omg.CosNaming., COM.rsa.
profiler ‘result’
If I try to profile a specific class (lib_refining.Rec.**), some statistics appear, but Visual vm freezes again, and the program stops working.
Given the usefulness of profiling, could you tell me how to make this tool work?
I tried different profiling options and none worked. Only for small applications
QQYu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.