Profiling Druid queries using flame graphs

Follow

Comments

4 comments

  • Rommel

    You need to be the grove user to print all java processes using the jcmd command.

    0
    Comment actions Permalink
  • Rommel

    It would be good to follow this up with how to read flame graph to find where time is spent the most relative to the query that was ran. For example for profiling broker there are a lot of threads there and one of them has qtp-*[datasource_name-queryid-*] thread. If that's the only thing I'm choosing, there doesn't seem to have a pattern on thread stuck somewhere. 

    1
    Comment actions Permalink
  • Jove

    If switching to the grove user with the following error:

    root@imply-data-2:~/flame_graph# su - grove
    This account is currently not available.

    then one can run:

    usermod -s /bin/bash grove
    0
    Comment actions Permalink
  • Agustin

    I get the following:

    imply@ip-10-3-205-129:~$ su - grove
    Password:
    su: Authentication failure

     

    This works though:

    imply@ip-10-3-205-129:~$ sudo -u grove jcmd 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.