A problem with pipes and StreamingProxy (maybe)

View: New views
7 Messages — Rating Filter:   Alert me  

A problem with pipes and StreamingProxy (maybe)

by Michael Hollenbeck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is a strange problem to whose root I can not get. I use StreamingProxy to forward a single incoming stream to various webapps on the same server. With .8Rc2, it works well enough.

Anything past that and I start to run into problems with open pipes.

---RC2:

server started:

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
10
Connected, streaming out:

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
22

Disconnected, streams stopped and proxies gone

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
10

---Latest:

server started:

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
10

Connected, streaming out:

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
58

Disconnected

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
58

Reconnect and disconnect

[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
202

[/usr/local/red5]# date
Thu JulĀ  9 10:24:39 PDT 2009
[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
202
[/usr/local/red5]# date
Thu JulĀ  9 10:39:39 PDT 2009
[/usr/local/red5]# lsof | grep java | grep pipe | wc -l
202


The pipes opened never close as they do in rc2 and so, eventually, red5 hits the open files limit and everything goes pbbbllttttt. I have been digging around in the code for a while trying to figure out just where this is happening and why. As near as I can figure, all the PipeConnectionEvents are firing off as they should, but still this thing.

Can anyone point me in the right direction? Is this a mina issue?




_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: A problem with pipes and StreamingProxy (maybe)

by FlashBoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I noticed the same problem with RED5. In my case there is no StreamingProxy involved however my application is doing some internal CONNECTs to itself.

After running some tests I can see that after all clients are disconnected JMap/jhat shows that my application classes are gone however lsof -p <PID> shows a lot of pipes and eventpolls.

As Michael said eventually RED5 hits the open files limit and stops responding.

Does anybody know what that might be?


Re: A problem with pipes and StreamingProxy (maybe)

by Michael Hollenbeck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Via RTMPClient?

On Wed, Jul 22, 2009 at 4:56 AM, FlashBoy <flashboy@...> wrote:

I noticed the same problem with RED5. In my case there is no StreamingProxy
involved however my application is doing some internal CONNECTs to itself.

After running some tests I can see that after all clients are disconnected
JMap/jhat shows that my application classes are gone however lsof -p <PID>
shows a lot of pipes and eventpolls.

As Michael said eventually RED5 hits the open files limit and stops
responding.

Does anybody know what that might be?


--
View this message in context: http://www.nabble.com/A-problem-with-pipes-and-StreamingProxy-%28maybe%29-tp24414882p24604909.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: A problem with pipes and StreamingProxy (maybe)

by FlashBoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, via RTMPClient.
Michael Hollenbeck wrote:
Via RTMPClient?

On Wed, Jul 22, 2009 at 4:56 AM, FlashBoy <flashboy@mailinator.com> wrote:

>
> I noticed the same problem with RED5. In my case there is no StreamingProxy
> involved however my application is doing some internal CONNECTs to itself.
>
> After running some tests I can see that after all clients are disconnected
> JMap/jhat shows that my application classes are gone however lsof -p <PID>
> shows a lot of pipes and eventpolls.
>
> As Michael said eventually RED5 hits the open files limit and stops
> responding.
>
> Does anybody know what that might be?
>
>
> --
> View this message in context:
> http://www.nabble.com/A-problem-with-pipes-and-StreamingProxy-%28maybe%29-tp24414882p24604909.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5@osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: A problem with pipes and StreamingProxy (maybe)

by iMDT - Tiago Jacobs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This bug was fixed yesterday, try it on trunk!

Tiago

FlashBoy wrote:
Yes, via RTMPClient.

Michael Hollenbeck wrote:
  
Via RTMPClient?

On Wed, Jul 22, 2009 at 4:56 AM, FlashBoy flashboy@... wrote:

    
I noticed the same problem with RED5. In my case there is no
StreamingProxy
involved however my application is doing some internal CONNECTs to
itself.

After running some tests I can see that after all clients are
disconnected
JMap/jhat shows that my application classes are gone however lsof -p
<PID>
shows a lot of pipes and eventpolls.

As Michael said eventually RED5 hits the open files limit and stops
responding.

Does anybody know what that might be?


--
View this message in context:
http://www.nabble.com/A-problem-with-pipes-and-StreamingProxy-%28maybe%29-tp24414882p24604909.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

      
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


    

  

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: A problem with pipes and StreamingProxy (maybe)

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Bitchin!
 
Red5 ROCKS My world!
 
Andy Shaules
 
 
----- Original Message -----
From: tiago@...
Sent: Saturday, September 19, 2009 10:12 AM
Subject: Re: [Red5] A problem with pipes and StreamingProxy (maybe)

This bug was fixed yesterday, try it on trunk!

Tiago

FlashBoy wrote:
Yes, via RTMPClient.

Michael Hollenbeck wrote:
  
Via RTMPClient?

On Wed, Jul 22, 2009 at 4:56 AM, FlashBoy flashboy@... wrote:

    
I noticed the same problem with RED5. In my case there is no
StreamingProxy
involved however my application is doing some internal CONNECTs to
itself.

After running some tests I can see that after all clients are
disconnected
JMap/jhat shows that my application classes are gone however lsof -p
<PID>
shows a lot of pipes and eventpolls.

As Michael said eventually RED5 hits the open files limit and stops
responding.

Does anybody know what that might be?


--
View this message in context:
http://www.nabble.com/A-problem-with-pipes-and-StreamingProxy-%28maybe%29-tp24414882p24604909.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

      
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


    

  


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: A problem with pipes and StreamingProxy (maybe)

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Im not trying the trunk until I get the word that all the surgeries going on are finished.
 
 
----- Original Message -----
From: tiago@...
Sent: Saturday, September 19, 2009 10:12 AM
Subject: Re: [Red5] A problem with pipes and StreamingProxy (maybe)

This bug was fixed yesterday, try it on trunk!

Tiago

FlashBoy wrote:
Yes, via RTMPClient.

Michael Hollenbeck wrote:
  
Via RTMPClient?

On Wed, Jul 22, 2009 at 4:56 AM, FlashBoy flashboy@... wrote:

    
I noticed the same problem with RED5. In my case there is no
StreamingProxy
involved however my application is doing some internal CONNECTs to
itself.

After running some tests I can see that after all clients are
disconnected
JMap/jhat shows that my application classes are gone however lsof -p
<PID>
shows a lot of pipes and eventpolls.

As Michael said eventually RED5 hits the open files limit and stops
responding.

Does anybody know what that might be?


--
View this message in context:
http://www.nabble.com/A-problem-with-pipes-and-StreamingProxy-%28maybe%29-tp24414882p24604909.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

      
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


    

  


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org