Guy Allard created APLO-352:
-------------------------------
Summary: Stomp TRACE output - Limit BufferContent Length
Key: APLO-352
URL: https://issues.apache.org/jira/browse/APLO-352
Project: ActiveMQ Apollo
Issue Type: Improvement
Components: apollo-stomp
Affects Versions: 1.7
Environment:
apache-apollo-99-trunk-20140130.205836-254-unix-distro.tar.gz
Linux tjjackson 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:43:51 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
Reporter: Guy Allard
Priority: Minor
The Stomp TRACE availability is quite nice.
For reference, an example of a SEND frame:
2014-03-02 16:21:34,853 | TRACE | received frame:
StompFrame(SEND,List((destination,/queue/snge.common.queue.1),
(senderId,8e12c9a2-b9b9-43e3-94f6-4ebd7f246792), (qnum,1), (msgnum,1),
(content-length,13)),BufferContent(ascii: _123456789ABC),true,List()) |
And the example of the corresponding MESSAGE frame:
2014-03-02 16:21:35,011 | TRACE | sending frame:
StompFrame(MESSAGE,List((destination,/queue/snge.common.queue.1),
(senderId,8e12c9a2-b9b9-43e3-94f6-4ebd7f246792), (qnum,1), (msgnum,1),
(content-length,13)),BufferContent(ascii:
_123456789ABC),true,List((subscription,06ac09eb-c270-422e-ad37-47f3676bd6c9),
(message-id,broker-11))) |
However ..... consider this case:
Suppose that as a client I am sending/receiving messages that average 16K bytes
in length (between 1 byte and 32K bytes, good size distribution).
In this case the trace output of the 'BufferContent' includes ... the entire
MESSAGE body.
This causes:
- the size of log files to blossom quite quickly
- a major decrease in the ability to rapidly read and understand logs
So ...... I am asking for a parametric way to control the amount of TRACE data
shown in 'BufferContent. Either':
- Suppress it totally
- Show the first X bytes only
- Show the last Y bytes only
- Show the first X bytes and the last Y bytes only
And yes, I know I am a pain in the ........
Regards, Guy
--
This message was sent by Atlassian JIRA
(v6.2#6252)