Menu

#223 jvmti agent reports missing /var/lib/oprofile/jitdump

None
closed-fixed
hanseld
None
5
2013-07-29
2012-09-27
Sunny Chan
No

I am trying to use the new operf with Java JVMTI agent. When I tried to run this I've got this error:

schan@thinkpadx1:~/oprofile-0.9.8$ /home/schan/oprofile/bin/operf java -agentpath:/home/schan/oprofile/lib/oprofile/libjvmti_oprofile.so -version
operf: Profiler started
libopagent: Jitdump agent directory /var/lib/oprofile/jitdump missing
libopagent: do opcontrol --setup or opcontrol --reset, first
Error: op_open_agent(): No such file or directory
Error occurred during initialization of VM
agent library failed to init: /home/schan/oprofile/lib/oprofile/libjvmti_oprofile.so
profiled app exited with the following status: 1

Profiling done.

This only works after I run opcontol --reset which create the appropriate directory.

The use of opcontrol to create the JIT dump directory is not desirable because on some of the boxes that I don't have root access, I can use operf but not opcontrol.

It would be much more useful if we can use an alternative directory that doesn't requires root access to store the jit information.

Discussion

  • Maynard Johnson

    Maynard Johnson - 2012-12-13
    • assigned_to: nobody --> hanseld
     
  • Mauricio Faria de Oliveira

    Hi,

    I'd like to humbly back this bug/feature request.

    Using the java agent with the jitdump dir in a non-privileged location (e.g., the usual ./oprofile_data/) is an interesting need for operf.

    Anything I could help on?

    Thanks!

     
  • hanseld

    hanseld - 2013-01-24
    • status: open --> open-fixed
     
  • hanseld

    hanseld - 2013-01-24

    This bug is fixed now together with another related bug.
    Please refer to the Oprofile mailing list to get the whole discussion and the final fix.

     
  • Maynard Johnson

    Maynard Johnson - 2013-07-29
    • status: open-fixed --> closed-fixed
    • Group: -->
     

Log in to post a comment.