Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rshd running out of privileged ports



> -----Original Message-----
> Date: Wed, 3 Mar 2004 19:40:50 -0800
> Subject: Re: rshd running out of privileged ports
> From: Justin Walker <email@hidden>
> To: email@hidden
>
> On Wednesday, March 3, 2004, at 06:39 PM, Mark Armstrong wrote:
>
> > Hello all,
> >
> > We have a build environment based upon Microsoft VC++ which rsh's the
> > build
> > commands to the Mac. If the compile-file rate is too high, we start
> > getting
> > rshd errors. When rsh'ing rapidly, rshd on the Mac seems to be
> > running out
> > of privileged ports to open stderr upon. The following script was
> > created
> > to show and reproduce the errors. It has been run from various Unix
> > machines and a similar script has been run from a Window machine all
> > with
> > the same errors occurring:
> > [snip]
> > Each rsh only does a sleep. After 42 runs, the rshd errors with:
> > "can't get stderr port: Can't assign requested address"
>
> This usually means that you have run out of resources. A couple of
> questions:
> - have you run this script against any other system? With what
> results?
> - what does 'netstat -tan | grep tcp' show?
> - Is there anything of interest in the system log or console log?
>

I have run this against other Unix machines and it does not have a problem.
Our build environment which uses rsh runs with no problems against Linux,
Solaris, FreeBsd, and HP-UX. I only put up the shell script to demonstrate
the problem in a portable way. I do know it is running out of resources and
that these resources are eventually being released. Rshd is using rresvport
to allocate sockets for each client connection. I believe that even though
it is closing the sockets, they are lingering. I have tried tuning the
kernel (through sysctl) to change that behavior, but with no luck. I was
hoping that someone has already experienced this problem and had a solution.

Thanks for the reply,
Mark
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.