I have run into a scenario when OProfile daemon fails to profile a Java application.
1. Start profile (opcontrol –start)
2. Start Java application with the JVMTI agent.
3. Stop Java application
4. Stop profile (opcontrol –shutdown)
In the above scenario, if there is no sample dump (OProfile daemon does not process samples in the event buffer.) during the period that the Java process is running. The daemon will not be able to map the anonymous samples to the JIT functions. However, if we force a dump (opcontrol –dump) during the period that the Java process is running, this problem will not occur. Is this a known behavior?