On 01/12/15 13:52, Gordon Sim wrote:
On 12/01/2015 10:38 AM, Toralf Lund wrote:Hi,Is there a simple way to determine the actual size of a certain message, or alternatively, the size of headers, the QPid "framing" etc., when using the C++ messaging API?I'm afraid not at present.
OK.
By "actual size" I mean the size of the information that travels across the network, as opposed to the size in memory occupied by a Message object and its data. If not, can any of the QPid tools offer me some help?The most accurate way would be to use wireshark or similar.
Of course...
A simpler alternative is to turn on trace level logging for a test client and send various messages. The sizes in the logging aren't 'complete' in that they generally don't include things like 'frame headers', but they are close and what is left out would be a fixed delta you could then add to the reported amount.
Right. I enabled trace via qpid::log::Logger::instance().select(...),
and got log lines containing information like
header (251 bytes); properties={{MessageProperties: content-length=23;
which is tells me most of what I need to know.
I'm trying to find out how much is "added by QPid" to the raw message data for a certain group of messages, as this may influence how much data I want to pack into each message...Is there a particular protocol version you care about (0-10 v 1.0)?
I care mainly about 0-10. Thanks! - Toralf
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[http://www.pgs.com/mediaFiles/Exclaimer%20graphics/PGS_LOGO_RGB_42x53px.jpg]<http://www.pgs.com> Toralf Lund Senior Software Engineer Imaging & Engineering | Geoscience & Engineering Telephone: +47 67 52 64 00 Direct: +47 67 51 57 78 VOIP: 74715778 Mobile: +47 91 31 66 91 Email: [email protected]<mailto:[email protected]> A Clearer Image | www.pgs.com<http://www.pgs.com> [http://www.pgs.com/mediaFiles/Exclaimer%20graphics/150731-ColourWave-660x14px.jpg] Address: Lilleakerveien 4C, 0283 Oslo, Norway Postal Address: P.O.Box 251 Lilleaker, 0216 Oslo, Norway This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author.
