Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-03-06 Thread dgriff
Hi, I don't think that particular change will help because: 1) we are not seeing any "too many open files" type error 2) the versions that I have tried don't have the catch in NioSocketAcceptor.accept 3) even if they did, this change simply restores the exception we are already seeing I think the

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-03-03 Thread Jonathan Valliere
What I did was add a more explicit check for the ulimit detector in NioSocketAcceptor. It might prevent the Acceptor from spinning in your situation. I use the word “might” because I haven’t analyzed the rest of the issue. Just wanted to reduce the chance of a false-positive in the ulimit detect

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-03-01 Thread dgriff
I've tried with the latest version of mina (2.0.16). I can reproduce the loop although I saw an IOException rather than NetworkRecycledException. I think we're going to have to advise customer to stop and restart their server as it looks too complicated to automatically recover. 145576 [NioSocket

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-26 Thread Jonathan Valliere
It is going to be complicated to re-bind; probably the first patch will simply let it fully fail. I’ll have to test the ulimit protection to see if I can determine if the exception is related to ulimit or something else. On Mon, Feb 26, 2018 at 11:35 AM, dgriff wrote: > Well according to this:

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-26 Thread dgriff
Well according to this: https://www.ibm.com/support/knowledgecenter/en/SSYKE2_9.0.0/com.ibm.java.multiplatform.90.doc/user/cinet.html "an exception (NetworkRecycledException) is thrown to the application to allow it either to fail or to attempt to rebind." So is it possible to modify this code to

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-22 Thread Jonathan Valliere
What is it that you expect Mina to do when the networking is reset? On Thu, Feb 22, 2018 at 5:48 AM, dgriff wrote: > Yes, it contains that message. How would you handle such an exception? > > > > -- > Sent from: http://apache-mina.10907.n7.nabble.com/Apache-MINA- > Developer-Forum-f6809.html >

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-22 Thread dgriff
Yes, it contains that message. How would you handle such an exception? -- Sent from: http://apache-mina.10907.n7.nabble.com/Apache-MINA-Developer-Forum-f6809.html

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-21 Thread Jonathan Valliere
So, that is an IBM specific exception which extends IOException. Is the message “Network Recycled while accepting connection” ? We can’t watch for NetworkRecycledException but can probably watch for an IOException with the word “recycled” in the message. On Wed, Feb 21, 2018 at 12:33 PM, dgriff

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-21 Thread dgriff
Hmmm, appears the "Raw text" formatting option doesn't work. 120808 [NioSocketAcceptor-1] WARN org.apache.mina.util.DefaultExceptionMonitor - Unexpected exception. com.ibm.net.NetworkRecycledException: Network Recycled while accepting connection at sun.nio.ch.ServerSocketChannelImpl.accept(S

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-21 Thread dgriff
Oh, sorry, the web interface must have stripped it out for some reason. Will try again: -- Sent from: http://apache-mina.10907.n7.nabble.com/Apache-MINA-Developer-Forum-f6809.html

Re: How to handle NetworkRecycledException in AbstractPollingIoAcceptor?

2018-02-20 Thread Emmanuel Lécharny
Le 20/02/2018 à 13:12, dgriff a écrit : > Hi, on z/OS it is possible to stop and restart the underlying TCP/IP stack. > When this is done, the JVM throws the following exception: > > > > (This is with 2.0.1 but problem still appears to be in latest version) Please provide the exeption and sta