web stats
max connections reached - Page 3 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #21  
Old 04-07-2016, 12:36 PM
rts rts is offline
Mirth Guru
 
Join Date: Feb 2008
Posts: 215
rts is an unknown quantity at this point
Default

I'm curious as to what netstat shows? I don't run any MLLP listeners on my Mirth Linux box so I can't test. If I remember correctly some TCP/IP socket level control info is reported like FIN_WAIT, CLOSE_WAIT. Maybe you can identify stale connections that way?
Reply With Quote
  #22  
Old 04-07-2016, 12:39 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Wink

Thanks for the replies:
We use the free version but I do have one
post-training support incident that maybe I could cash in
... if I actually knew how to do that.
Reply With Quote
  #23  
Old 04-08-2016, 04:02 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

Call Mirth Support
800-952-0243
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #24  
Old 04-11-2016, 06:29 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Red face

Our max 200 connection was reached when I logged in this morning and hence customers were complaining that our system is down.
Reply With Quote
  #25  
Old 04-11-2016, 06:36 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Question Help?

I have a theory that this may be what is happening...
RE: Port MLLP source connector...

a) Our app database goes down for the backup process.
(this is not the database that Mirth Connect uses, but the one that our channel code uses)
b) Messages that come in are stored for reload later, but the client still gets an AE Ack back with some info in the ERR segment.
c) The client computer re-connects and sends the message again because of the failure.
d) Our setting is 200 connections. Once this is met Mirth stops responding.
e) Either the client is not closing the previous connections or Mirth Connect is not closing stale connections when a throw error happens in the channel.
Reply With Quote
  #26  
Old 04-11-2016, 06:43 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

What did you do to resolve the issue this morning? Can you automate this process?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #27  
Old 04-11-2016, 06:50 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Exclamation

First I tried to redeploy the channel.
It was in 'stopping' for too long, so then I 'halt' the channel.
Then I re-deployed the channel again.
The connections were reducing slowly but I was
getting error emails that current messages were not processing.
So then I just restart the whole Mirth Connect server.
After which I had to re-process all the messages that had error during this time. (About 52)
Now everything is good.
Reply With Quote
  #28  
Old 04-11-2016, 06:59 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

Can you pause the processing of messages on the channel while the database is being backed up? Where did the messages error? What is the message flow? How many channels do the messages go through before they reach the DB? Can you post the channels in question?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #29  
Old 04-11-2016, 07:01 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Talking

I do have a channel that I wrote a very long time ago, that was currently disabled. I am going to enable it.
It runs daily at 4am and restarts the Mirth Connect server automatically using the following code.

Packages.java.lang.Runtime.getRuntime().exec("mcse rvice restart");

(This is a hack fix that may be better than what it does now.)
Reply With Quote
  #30  
Old 04-11-2016, 07:05 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 931
StickyBandit is on a distinguished road
Default

We also don't know any exact time of when the DB backup will start or how long it will take. The code in the channel does take care of storing the message in a file for reload later. And we take care of a flag that says the DB is down. But this does not prevent customer/clients from making more connections, even if our ERR segment provides good info. They don't read them anyways.

I guess I could add code to pause the port channel when our dbDown() function is run and then start the channel when our dbUp() function is called.
But right now the dbUp() only gets called after a message has successfully processed. If the channel is paused, then this will never get called.
So we currently store the messages into a file and that file gets processed later after dbUp() has been called. (did this make sense?)

Last edited by StickyBandit; 04-11-2016 at 07:08 AM.
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 04:59 PM.


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