0

我正在使用 byteman 4.0.17。安装 byteman 成功。使用 bmsubmit.sh 工具会引发错误。

$ byteman-download-4.0.17/bin/bmsubmit.sh -y
Failed to process request: java.lang.Exception: Invalid name/value pair in line [HTTP/1.1 400 Bad Request]. Full response below:
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close

400 Bad Request

java.lang.Exception: Invalid name/value pair in line [HTTP/1.1 400 Bad Request]. Full response below:
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close

400 Bad Request

    at [org.jboss.byteman.agent.submit.Submit.listSystemProperties][1](Submit.java:767)
    at org.jboss.byteman.agent.submit.Submit.main(Submit.java:1113)
$

此外,当我尝试提交规则时,我得到一个错误。

$ byteman-download-4.0.17/bin/bmsubmit.sh -l /mnt/jenkins/FileDescriptorLeak.btm
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close

400 Bad Request

$

我在这里做错了吗?

########################################################################
#
# Rule to trace opening files
#

RULE FileOutputStream open trace
CLASS java.io.FileOutputStream
METHOD <init>
AT EXIT
IF TRUE
DO traceStack("*** Called init in thread " + Thread.currentThread().getName() + "\n", 30)
ENDRULE
4

1 回答 1

0

该问题的解决方案是在使用 bminstall 命令时定义一个未使用的端口。使用 -p 标志。

于 2021-11-25T11:42:48.560 回答