简体   繁体   English

从 java 命令行禁用 sap jco 跟踪

[英]Disable sap jco traces from java command line

In our mule server we are bombarded with logs such as below every second, How do i stop it.在我们的 mule 服务器中,我们每秒都被以下日志轰炸,我该如何阻止它。

*************** SAP_CMLISTEN ***************
[Thr 133440] SAP_CMLISTEN: timeout = 2000
[Thr 133440] SiSelNSelect: start select (timeout=2000)
[Thr 133440] Tue Oct 29 16:27:38 2019
[Thr 133440] NiSelISelectInt: 0 handles selected (0 buffered)
[Thr 133440] SAP_CMLISTEN: STISendNiping returns: 0 
[Thr 133440] SAP_CMLISTEN: timeout after 2000 msecs
[Thr 133440] *************** SAP_CMLISTEN ***************

I tried run some java commands with -Djco.trace_level=0, but failed.我尝试使用 -Djco.trace_level=0 运行一些 java 命令,但失败了。

$ java -Djco.trace_level=0

above command doesn't work.上面的命令不起作用。

I expect the sap jco trace logs be disabled.我希望 sap jco 跟踪日志被禁用。

Property jco.trace_level is for the upper JCo API traces.属性jco.trace_level用于上 JCo API 跟踪。 But your example shows the CPIC trace.但是您的示例显示了 CPIC 跟踪。
This can be switched on via logon parameter ( jco.client.cpic_trace ) or via global JCo property ( cpic.trace ) or it can be switched on remotely from the communication partner via trace level propagation.这可以通过登录参数 ( jco.client.cpic_trace ) 或通过全局 JCo 属性 ( cpic.trace ) 打开,也可以通过跟踪级别传播从通信伙伴远程打开。

If you haven't switched it on at JCo side, then it was activated remotely from the communication partner (the ABAP system).如果您还没有在 JCo 端打开它,那么它是从通信伙伴(ABAP 系统)远程激活的。
Recently, a new JCo property cpic.trace.accept_remote_activation has been added for accepting the CPIC remote trace activation with the default being '0' (OFF).最近,添加了一个新的 JCo 属性cpic.trace.accept_remote_activation以接受 CPIC 远程跟踪激活,默认'0' (关闭)。 As far as I know, this remote trace activation could not be suppressed with older JCo patch levels.据我所知,旧的 JCo 补丁级别无法抑制这种远程跟踪激活。 If you update your JCo library to the latest patch level (currently JCo 3.0.20) these CPIC traces should not be created anymore if the Java application hasn't actively switched it on.如果您将 JCo 库更新到最新的补丁级别(当前为 JCo 3.0.20),并且 Java 应用程序没有主动打开它,则不应再创建这些 CPIC 跟踪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM