donato91 / rcaller

Automatically exported from code.google.com/p/rcaller
Other
0 stars 0 forks source link

RCaller - set RscriptExecutable() - memory consumption. #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I am a Java Developer, and have been using the RCaller API for the last few 
months for a project (trying to use the Linear Mixed Effects Model for a set of 
x, y axis values). 

I had a dataset with around 300+ numbers (randomly generated x, y-axis values 
for a series). I tried to run the Linear Mixed Model in R via RCaller but my 
Windows Task Manager showed the memory of my java app going over 900,000K (CPU: 
92 !). 

The app then showed an RCaller  error ("Unable to parse output file"; as the 
output file returned from R was empty). 

Looking into the problem, I found the error occurred at this line:
       rcaller.setRscriptExecutable(rScriptPath);

where:  rScriptPath is a String holding my RScript path: C:/Program Files 
(x86)/R/bin/x64/Rscript.exe

I believe this is a serious issue as for any dataset with over 300 values (in 
my app), RCaller starts consuming too much memory and the app crashes on the 
line I mentioned above (rcaller.setRscriptExecutable()). 

Kindly let me know if anyone has seen this before and how to rectify this 
issue. 

Thanks.

Original issue reported on code.google.com by ajrulez....@gmail.com on 17 Mar 2014 at 10:12

GoogleCodeExporter commented 9 years ago
Please define your path to file as c:\\Program Files\\.......\\Rscript.exe, for 
short, use \\ instead / if you are using Windows. Write if your problem is 
still current.

Original comment by mhsatman on 25 Apr 2014 at 9:25

GoogleCodeExporter commented 9 years ago
Hi, I tried replacing all the '/' with '\\' but the problem still persists 
(only if I run the code as a Java Web Start instead of a desktop application). 
I get the error due to a space in the RscriptExecutable path name which leads 
to a "createProcess" error.

Original comment by ajrulez....@gmail.com on 29 Jul 2014 at 12:52