JMX

JMX (Java Management Extension) allows to monitor statistics about asynchronnous messages or starts administration operations.

JVM and Camel attributes

See Camel JMX for more info about Camel attributes and operations - "By default, JMX instrumentation agent is enabled in Camel, which means that Camel runtime creates and registers MBean management objects with a MBeanServer instance in the VM. This allows Camel users to instantly obtain insights into how Camel routes perform down to the individual processor level. The supported types of management objects are endpoint, route, service, and processor."

Parameter

Description

Note

Current heap size

Current heap memory size.

If there is no enough memory then garbage collector needs more often to free memory and the performance is suffering.

Maximum heap size

Maximum heap memory size.

Related to the previous parameter.

Live threads

Current count of running threads

If there is trend with increasing number of threads then it seems to be a problem.

   

Apache Camel parametry - org.apache.camel

Running statistics from Apache Camel

 

MessageStatus - statistics about asynchronnous messages

Parameter

Description

countOfFailedCount of messages in state FAILED
countOfProcessingCount of messages in state PROCESSING
countOfCanceledCount of messages in state CANCEL
countOfNewCount of messages in state NEW
countOfOkCount of messages in state OK
countOfPartlyFailedCount of messages in state PARTLY_FAILED
countOfWaitingCount of messages in state WAITING
countOfWaitingForResponseCount of messages in state WAITING_FOR_RES
countOfPostponedCount of messages in state POSTPONED
countOfCancelCount of messages in state CANCEL
countOfFailedAfterIntervalCount of messages in state FAILED and after interval
countOfProcessingAfterIntervalCount of messages in state PROCESSING and after interval
countOfWaitingAfterIntervalCount of messages in state WAITING and after interval
countOfOkAfterIntervalCount of messages in state OK and after interval
countOfNewAfterIntervalCount of messages in state NEW and after interval
countOfPartlyFailedAfterIntervalCount of messages in state PARTLY_FAILED and after interval
countOfCancelAfterIntervalCount of messages in state CANCEL and after interval
countOfWaitingForResponseAfterIntervalCount of messages in state WAITING_FOR_RES and after interval
countOfPostponedAfterIntervalCount of messages in state POSTPONED and after interval


MessageAdmin - message administration

OperationDescriptionNote
restartMessage

Restarts message for next processing.

totalRestart parameter determines if message should start from scratch again (true) or if message should continue when it failed (false)

 
cancelMessageCancels next message processing, sets message to CANCEL state. 
startNextProcessingStarts next processing of PARTLY_FAILED and POSTPONED messages.Can run one process at one time only.
repairProcessingMessagesStarts repairing processing messages.Â