Replace the last line of $RESIN_HOME/bin/httpd.sh (or resin.sh in Resin 3.2+) with the following:
$RESIN_HOME/bin/httpd.sh
resin.sh
exec $JAVA_EXE -javaagent:$AGENT_PATH_UNIX -jar $RESIN_HOME/lib/resin.jar $*