web stats
Max processing threads - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2019, 12:27 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 947
StickyBandit is on a distinguished road
Question Max processing threads

I have a channel that has channel reader.
Max processing threads set to a high number, but the channel still seems
to be processing one at a time instead of creating threads and doing them all
at the same time. What should I look for to resolve this? I didn't find the bottleneck yet.


Mirth Connect Server 3.8.0
Built on May 22, 2019
Java version: 1.8.0_181

Last edited by StickyBandit; 10-15-2019 at 02:09 PM.
Reply With Quote
  #2  
Old 10-08-2019, 12:46 PM
pacmano pacmano is offline
OBX.2 Kenobi
 
Join Date: Oct 2009
Location: Texas
Posts: 86
pacmano is on a distinguished road
Default

Channel type? File Reader?
__________________
Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
Diridium Technologies, Inc.
https://diridium.com
Reply With Quote
  #3  
Old 10-08-2019, 01:15 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 947
StickyBandit is on a distinguished road
Default

channel reader.
Reply With Quote
  #4  
Old 10-09-2019, 08:47 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 964
agermano is on a distinguished road
Default

Can you attach your channel?
Reply With Quote
  #5  
Old 10-10-2019, 09:16 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 947
StickyBandit is on a distinguished road
Default

I can't really do that because of work policy. But is there a way in mirth
to see what is going on with the threads. A monitor tool or something?
Reply With Quote
  #6  
Old 10-12-2019, 07:20 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 947
StickyBandit is on a distinguished road
Wink

We made some tweaks in hopes to fix this.
a) Did a PGtune on the postgres db (changed settings, increased connections)
b) Found an increment leak in the global pre-processor and fixed that.
c) Fixed some channels that did not clear global channel map on deploy.
d) Increased the connection pool size in mirth for it's posgres db.

I will wait to see if the problem comes back.

Last edited by StickyBandit; 10-12-2019 at 09:48 PM.
Reply With Quote
  #7  
Old Today, 09:18 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 947
StickyBandit is on a distinguished road
Thumbs down

Apparently mirth connect actually instantiates the entire thread max count into memory.
Since I set this to a high number like 400 or 800. The CPU was so busy with managing all these resting threads that it became a bottleneck and our system kept failing.

Mirth need to rename that field to Instantiated threads instead of Max thread count.

We have been fighting with this issue for days because we also have a lot of channels and added multi-threading.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation