Dear all,

 

first of all I apologize for not having changed the object.

I just re-used an old email I sent some time ago.

The let us go into the question.

Our architecture is the following:

 

A (set of) java programs running under a jvm that passes data and instructions to an R instance via RNI 

and at the end of the process extracts calculated data from R.

 

 

The question is: can I define a new JVM with a new instance of R on the same machine ?

How can I spawn multiple R independent instances using the same package libraries ? 

Should I instead "duplicate" the initial R installation to get different

instances with different libraries ? Is it enough or even in this case

the different instances "share" something so they are not really "fully

independent" ?

 

Thanks again

 

Angelo

-----Messaggio originale-----
Da: R. Michael Weylandt [mailto:michael.weylandt@gmail.com] 
Inviato: venerdė 15 giugno 2012 16.16
A: LINARDI ANGELO
Cc: r-help@r-project.org
Oggetto: Re: [R] R: Securities earning covariance

 

I'm somewhat confused:

 

i) What does this have to do with your subject line?

 

ii) There does not exist -- to my knowledge -- an implementation of R

which runs on the JVM.

 

iii) Have you simply looked into R's native parallel computing

options? That seems to be (maybe?) what you are trying to do.

 

Incidentally, thanks to the in-memory model, it is possible to spawn

multiple R processes which use the same package libraries [the package

is the thing in the library, which is tied to the filesystem] on the

same machine (I'm thinking real, but this shouldn't be a problem with

a reasonable VM setup either)

 

Michael

 

On Fri, Jun 15, 2012 at 3:05 AM,  <ANGELO.LINARDI@bancaditalia.it> wrote:

> 

> Good morning.

> 

> I have a real fuzzy question to ask; we have a calculation engine which

> is composed by n virtual machines each of them with a jvm 2GB of memory

> on Linux Red Hat each of them with the "R" package which comes along

> with the Red Hat Linux distribution.

> We have now to increase the number of "nodes" trying to avoid to use new

> virtual or physical machines. So my question is: is it possible to

> install multiple jvm on the same machine each of them with its

> independent instance of R ?

> Should I "duplicate" the initial R installation to get different

> instances with different libraries ? Is it enough or even in this case

> the different instances "share" something so they are not really "fully

> independent" ?

> Thanks so much for you help

> 

> Angelo Linardi

> 

> ** Le e-mail provenienti dalla Banca d'Italia sono trasmesse in buona fede e non

> comportano alcun vincolo ne' creano obblighi per la Banca stessa, salvo che cio' non

> sia espressamente previsto da un accordo scritto.

> Questa e-mail e' confidenziale. Qualora l'avesse ricevuta per errore, La preghiamo di

> comunicarne via e-mail la ricezione al mittente e di distruggerne il contenuto. La

> informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati

> potrebbe costituire reato. Grazie per la collaborazione.

> -- E-mails from the Bank of Italy are sent in good faith but they are neither binding on

> the Bank nor to be understood as creating any obligation on its part except where

> provided for in a written agreement. This e-mail is confidential. If you have received it

> by mistake, please inform the sender by reply e-mail and delete it from your system.

> Please also note that the unauthorized disclosure or use of the message or any

> attachments could be an offence. Thank you for your cooperation. **

> 

> ______________________________________________

> R-help@r-project.org 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.


** Le e-mail provenienti dalla Banca d'Italia sono trasmesse in buona fede e non 
comportano alcun vincolo ne' creano obblighi per la Banca stessa, salvo che cio' non 
sia espressamente previsto da un accordo scritto.
Questa e-mail e' confidenziale. Qualora l'avesse ricevuta per errore, La preghiamo di 
comunicarne via e-mail la ricezione al mittente e di distruggerne il contenuto. La 
informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati 
potrebbe costituire reato. Grazie per la collaborazione.
-- E-mails from the Bank of Italy are sent in good faith but they are neither binding on 
the Bank nor to be understood as creating any obligation on its part except where 
provided for in a written agreement. This e-mail is confidential. If you have received it 
by mistake, please inform the sender by reply e-mail and delete it from your system. 
Please also note that the unauthorized disclosure or use of the message or any 
attachments could be an offence. Thank you for your cooperation. **
	[[alternative HTML version deleted]]

