備忘録 これが一番楽なはず。
前提
Byteman version >= 1.4
JDK version >= 6
export BYTEMAN_HOME=/xxxxx
JBoss AS を普通に起動
cd $BYTEMAN_HOME
bin/bminstall.sh -b [pid]
bin/bmsubmit.sh -l [rule script]
java.* パッケージを触るときはこのオプションつける
bin/bminstall.sh -b -Dorg.jboss.byteman.transform.all=true
jarをクラスパスに突っ込むときは
bin/bmsubmit.sh -b [jar path]
http://bytemanblog.blogspot.com/2010/10/collecting-and-displaying-runtime.html
=====================
run.conf触るときはこっち
JAVA_OPTS="$JAVA_OPTS -javaagent:/home/tkobayas/usr/local/byteman/213/lib/byteman.jar=listener:true,script:/home/tkobayas/usr/local/byteman/213/log.rule,sys:/home/tkobayas/usr/local/byteman/213/lib/byteman.jar"
=======