Announcement Announcement Module
No announcement yet.
Lots of "DefaultMessageListenerContainerThreads" Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lots of "DefaultMessageListenerContainerThreads"

    I am using Active MQ and the DefaultMessageListenerContainer in Order to access the MQ.

    When debugging my Application I see lots of DefaultMessageListenerContainer Threads being created and closed. Lets say 5 per Second. Why keeps this happening ? Is this normal behavior ?

    best regards

  • #2
    Is this normal behavior ?
    That depends on your configuration. If you haven't specified a taskexecutor then yes it is normal behavior as the SimpleAsyncTaskExecutor is used which creates threads when it needs them. If you want to reuse threads use a TaskExecutor which uses a thread pool. If you have specified one and you see this happen then it depends on your taskexecutor and its configuration (depending on poolsize, thread idle times etc.).