Merge pull request #1385 from akka/wip-3280-log-payload-size-patriknw

Logging of the size of different message types.
This commit is contained in:
Patrik Nordwall 2013-05-07 01:05:03 -07:00
commit 257313ce2a
6 changed files with 143 additions and 1 deletions

View file

@ -157,6 +157,23 @@ If you want to see all messages that are received through remoting at DEBUG log
}
}
If you want to see message types with payload size in bytes larger than
a specified limit at INFO log level:
.. code-block:: ruby
akka {
remote {
# Logging of message types with payload size in bytes larger than
# this value. Maximum detected size per message type is logged once,
# with an increase threshold of 10%.
# By default this feature is turned off. Activate it by setting the property to
# a value in bytes, such as 1000b. Note that for all messages larger than this
# limit there will be extra performance and scalability cost.
log-frame-size-exceeding = 1000b
}
}
Also see the logging options for TestKit: :ref:`actor.logging-java`.
Turn Off Logging

View file

@ -173,6 +173,23 @@ If you want to see all messages that are received through remoting at DEBUG log
}
}
If you want to see message types with payload size in bytes larger than
a specified limit at INFO log level:
.. code-block:: ruby
akka {
remote {
# Logging of message types with payload size in bytes larger than
# this value. Maximum detected size per message type is logged once,
# with an increase threshold of 10%.
# By default this feature is turned off. Activate it by setting the property to
# a value in bytes, such as 1000b. Note that for all messages larger than this
# limit there will be extra performance and scalability cost.
log-frame-size-exceeding = 1000b
}
}
Also see the logging options for TestKit: :ref:`actor.logging-scala`.
Translating Log Source to String and Class