[R] R as a server on Linux

Gregory Warnes gregory.warnes at mac.com
Tue Apr 24 20:45:32 CEST 2007


Hi Markus,

Take a look at RSOAP (http://rsoap.sf.net).  It was designed for  
handling concurrent client connections to R, and minimizes the per- 
connection startup time by pre-starting R and forking of processes as  
requests come in.  Each client can maintain a stateful connection, if  
desired.

-G



On Apr 24, 2007, at 2:15PM , Markus Loecher wrote:

> Hi,
> I am trying to avid the somewhat costly startup overhead of launching
> a separate R executable for each "client" request on Linux.
> My current architecture is such that My Java client explicitly calls
> R in batch mode and passes it certain parameters. The initital
> startup takes almost 10 seconds because R has to load a bunch of
> libraries as well as a moderately large, previously created workspace.
> I am thinking that it would be so much more eficient to instead have
> R act as a server and fork off a thread for each client query. Is
> that possible at all ?
>
> Thanks!
> Markus
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting- 
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list