Re: resource consumption for an open pipe
Mohamed Abdelaziz <[email protected]> Tue, 06 Sep 2005 18:38:22 -0700
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
Christoph Mueller wrote: > Hi all > What sort of resources does an open pipe consume? > > I am trying to figure out whether I should leave all pipe endpoints > open that MIGHT be used later again, or close them all and reopen them > later. > > Does an open but unused pipe consume bandwith or sockets throught some > sort of keepalive message? > An open input pipe does not cost anything other the entry for the pipe in the local cache and it's rendezvous + replica if any. An open pipe output pipe will cost an occasional pipe resolver query message on the wire to ensure the pipe has not migrated from it's original endpoint, the default ping frequency is set to 20 minutes. Mohamed -- http://blogs.sun.com/roller/page/hamada http://weblogs.java.net/blog/hamada