web stats
CLOSE_WAIT leak - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2019, 02:08 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 921
StickyBandit is on a distinguished road
Red face CLOSE_WAIT leak

We run Mirth connect on linux and when mirth is running in our TEST environment the CLOSE_WAIT number keeps climbing and climbing everyday. I know that mirth connect is the culprit because when I shut it down this number goes back to 0 zero.
Seen by this linux command...
$/sbin/lsof | grep '>itx' | grep CLOSE_WAIT | wc -l
239370


I have added the ability to use the new Oracle DB connection pool with...
:POOLED at the end of the URL and the new oracle driver...
oracle.jdbc.pool.OracleDataSource from the ojdbc8.jar file replacing the ojdbc7 that gets installed with mirth connect. I also added multi-threading to several channels.

I tried to address any and all changes that were needed for these new features, but I discovered this CLOSE_WAIT leak still exist.

Any help or ideas on how to find what is causing this issue would be greatly appreciated?


Mirth Connect Server 3.6.1
Built on July 13, 2018
Java version: 1.8.0_181

Last edited by StickyBandit; 07-17-2019 at 07:59 AM.
Reply With Quote
  #2  
Old 07-10-2019, 07:05 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 921
StickyBandit is on a distinguished road
Default

Anybody read this?
Reply With Quote
  #3  
Old 07-10-2019, 02:17 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 802
agermano is on a distinguished road
Default

Are you possibly forgetting to close your database connections?
Reply With Quote
  #4  
Old 07-11-2019, 12:52 AM
MrGesan MrGesan is offline
OBX.1 Kenobi
 
Join Date: Jul 2011
Location: Italy
Posts: 26
MrGesan is on a distinguished road
Default

Quote:
Originally Posted by StickyBandit View Post
I have added the ability to use the new Oracle DB connection pool with...
:POOLED at the end of the URL and the new oracle driver...
oracle.jdbc.pool.OracleDataSource from the ojdbc8.jar file replacing the ojdbc7 that gets installed with mirth connect. I also added mult-threading to several channels.
It would be interesting to know how your channels work. Do they open sockets only with the oracle server or use other connectors o javascript codes that open sockets?



As you know the CLOSE_WAIT status means that the other side has initiated a connection closure, but the application on the local side has not yet closed the socket. Maybe the mirth connector or javascript code (if you open sockets by code) has released the connection handler before completing the closure
Reply With Quote
  #5  
Old 07-15-2019, 08:58 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 921
StickyBandit is on a distinguished road
Question

I thought it was also that some connections were not getting closed.
But after verifying that no channels were even getting any messages and yet
the CLOSE_WAIT number was still climbing by the hundreds, I am beginning to think that maybe Mirth Connect is somehow not compatible with ojdbc8.jar.

Not sure what the heck is going on...

I have even stopped channels, trying to pin down which channels are causing it, it didn't seem to matter or help.


I may have to rollback to ojdbc7.jar soon.

Last edited by StickyBandit; 07-16-2019 at 01:33 PM.
Reply With Quote
  #6  
Old 07-16-2019, 01:56 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 921
StickyBandit is on a distinguished road
Question

Does anyone at Mirth think the new version Mirth Connect Server 3.8.0
would fix this issue?
Reply With Quote
  #7  
Old Yesterday, 11:46 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 921
StickyBandit is on a distinguished road
Unhappy

What I mean is that all the channels are idle and the CLOSED_WAIT count still goes up by another 100 every few minutes.
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 06:08 PM.


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