How to depress lines such as "Debug [org.apache.commons.httpclient.util.IdleConnectionHandler] BW-EXT-LOG-300002 Checking for connections, idleTimeout: " when the persistent connection manager is used.

How to depress lines such as "Debug [org.apache.commons.httpclient.util.IdleConnectionHandler] BW-EXT-LOG-300002 Checking for connections, idleTimeout: " when the persistent connection manager is used.

book

Article ID: KB0084787

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
How to depress lines such as "Debug [org.apache.commons.httpclient.util.IdleConnectionHandler] BW-EXT-LOG-300002 Checking for connections, idleTimeout: " when the persistent connection manager is used (bw.plugin.http.client.usePersistentConnectionManager=true).

The content is repeated and shows up in the Designer console or BW log. It is repeating making the log hard to read.

Issue/Introduction

How to depress lines such as "Debug [org.apache.commons.httpclient.util.IdleConnectionHandler] BW-EXT-LOG-300002 Checking for connections, idleTimeout: " when the persistent connection manager is used.

Resolution

1). For BW 5, add the following line resembling "F:\tibco\bw\5.12\lib\log4j.properties" to the file.


log4j.logger.org.apache.commons.httpclient.util.IdleConnectionHandler=WARN, tibco_bw_log

Or add the following line resembling "E:\tibco513\bw\5.13\lib\log4j.xml" to the file.

 <logger name="org.apache.commons.httpclient.util.IdleConnectionHandler">
    <level value="WARN"/>
  </logger>

2). For BW 6, make sure the following entry is in the logback file.

<logger name="org.apache.commons.httpclient.util.IdleConnectionHandler">
    <level value="ERROR"/>
  </logger>

Note that if you want to disable other logs, modify the lines resembling the following in file  "F:\tibco\bw\5.12\lib\log4j.properties" to disable the detail log. Change the log level from DEBUG/INFO to WARN/ERROR.

log4j.logger.org.apache.commons.httpclient=DEBUG, tibco_bw_log
log4j.logger.httpclient.wire.header=DEBUG, tibco_bw_log


Additional Information

bw.plugin.http.client.ResponseThreadPool=100
bw.plugin.http.client.usePersistentConnectionManager=true
bw.plugin.http.client.maxConnectionsPerHost=100
bw.plugin.http.client.checkForStaleConnections=false