Home > Back-end >  Spring integration activeMq will regularly check written to?
Spring integration activeMq will regularly check written to?

Time:12-10

Running WriteCheck
A beginner, his reference to writing a demo online ~ ~
I want to ask next is this normal? Thank you, because can't find the answer online ~ ~
The console information is as follows:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The 2017-12-08 14:55:51, 066 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
The 14:56:01 2017-12-08, 070 - DEBUG - WriteChecker: 10005 ms elapsed since the last write check.
The 2017-12-08 14:56:01, 070 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
The 14:56:11 2017-12-08, 075 - DEBUG - WriteChecker: 10005 ms elapsed since the last write check.
The 2017-12-08 14:56:11, 075 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
The 14:56:21 2017-12-08, 013 - DEBUG - 30002 ms elapsed since the last read check.
The 14:56:21 2017-12-08, 077 - DEBUG - WriteChecker: 10002 ms elapsed since the last write check.
The 2017-12-08 14:56:21, 078 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
The 14:56:31 2017-12-08, 077 - DEBUG - WriteChecker: 10000 ms elapsed since the last write check.
The 2017-12-08 14:56:31, 077 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
The 14:56:41 2017-12-08, 082 - DEBUG - WriteChecker: 10005 ms elapsed since the last write check.
The 2017-12-08 14:56:41, 082 - DEBUG - Running WriteCheck [TCP://127.0.0.1:61616]
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
JMS XML configuration is as follows:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



">






-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Call in the following:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@ RequestMapping (" amqSend ")
Public void amqSend () {
SpringContextUtil JmsTemplate JmsTemplate=(JmsTemplate) getBean (" jmsQueueTemplate ");
TestAmqSend jmsTemplate. ConvertAndSend (" ", "I am Flxia");
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

CodePudding user response:

"Write check" too frequent, a log file 5 ms soon burst, in addition the log output will also consume CPU, high frequency of log output will lead to excessive CPU consumption, from the log, consumer receiveTimeout parameter USES the default 10000, suggest check:
1. A confirmation message can be normal use, abnormal transceiver can lead to consumers over checking,
2. Set the threshold of the log, such can consider to block, the DEBUG log to prevent the log output is too wordy,

CodePudding user response:

Spring integration ActiveMQ can refer to this article
http://blog.csdn.net/qq_37142346/article/details/78758564

CodePudding user response:

This should be related to your log output level, my is log4j, it is ok to join this line log4j.logger.org.apache.activemq=INFO, stdout
  • Related