Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> $ head $CATALINA_HOME/setenv.sh
- BYTEMAN_HOME="/_/opt/byteman"
- BYTEMAN_RULES="${CATALINA_HOME}/byteman-rules"
- BYTEMAN_OPTS="-Dorg.jboss.byteman.transform.all -javaagent:${BYTEMAN_HOME}/lib/byteman.jar=script:${BYTEMAN_RULES}/monitor.btm,boot:${BYTEMAN_HOME}/lib/byteman.jar,listener:true"
- JAVA_OPTS=" ${BYTEMAN_OPTS} "
- >> $ find byteman-rules/
- byteman-rules/
- byteman-rules//monitor.btm
- >> $ cat byteman-rules/monitor.btm
- RULE trace entering
- CLASS com.atlassian.jira.issue.index.DefaultIndexManager
- METHOD reIndex
- AT ENTRY
- #IF callerMatches("com.example.*",true,true)
- IF true
- DO traceln("[REINDEX]"+" Issue:"+$issue+" Status:"+$issue.getStatusObject().getName()),traceStackMatching("com.example.*",true,true)
- ENDRULE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement