[R] increasing the # of socket connections

Luke Tierney luke at stat.uiowa.edu
Fri Aug 25 22:22:51 CEST 2006

On Fri, 25 Aug 2006, Prof Brian Ripley wrote:

> On Fri, 25 Aug 2006, Marc Kirchner wrote:
>> Dear "R-help"ers,
>> using snow on socket connections, I ran into the following error
>> >  cl <- makeSOCKcluster(hosts)
>> 	Error in socketConnection(port = port, server = TRUE,
>> 	blocking = TRUE : all connections are in use
>> with "showConnections(all=T)" showing 50 open connections.
>> As - for administrative reasons - I would prefer to use snow's
>> SOCK capabilities (instead of MPI and the like), I wonder if there is a
>> way to increase the number of simultaneous open connections allowed in
>> an R session (~100 would be sufficient).
> If you really need them open at once (and are not just forgetting to close
> them), then change the constant in the file and recompile.
>> Any help/hints are greatly appreciated,
> Is this the appropriate list: not on my reading of the posting guide!

Would you have asked that question if the answer had been
options(max.connections=100)?  I for one would not.



Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

More information about the R-help mailing list