GitHub user pgfox opened a pull request:
https://github.com/apache/activemq-artemis/pull/1665
ARTEMIS-1520 add connection ID to the trace logging for reading/writing
packets.
This helps correlate the packets read/written to an individual tcp
connection
By setting
``
logger.org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.level=TRACE
logger.org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.level=TRACE
``
The output will contain an association between RemotingConnectionID and
the local/remote tcp connection. Also, logging for the packets received and
sent will have RemotingConnectionID associated making it easier to track the
interaction on an individual connection.
``
RemotingConnectionImpl created: RemotingConnectionImpl [ID=2a27fbff,
clientID=null, nodeID=e3635a94-d036-11e7-8bca-a860b60c8b30,
transportConnection=org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection@460561df[ID=2a27fbff,
local= /127.0.0.1:61616, remote=/127.0.0.1:55729]]
...
RemotingConnectionID=2a27fbff handling packet
PACKET(CreateSessionMessage)[type=30, channelID=1,
packetObject=CreateSessionMessage, autoCommitAcks=false,
...
RemotingConnectionID=2a27fbff Sending packet nonblocking
PACKET(SessionBindingQueryResponseMessage_V4)[type=-15, channelID=11,
``
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pgfox/activemq-artemis connection_logging
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1665.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1665
----
commit 6f785de3d8afdf26da3cb56309b07e5b21feec32
Author: Pat Fox <[email protected]>
Date: 2017-11-13T19:03:17Z
ARTEMIS-1520 add connection ID to the trace logging output dealing with
reading/writing packets.
This helps correlate the packets read/written to an individual tcp
connection
----
---