Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fresh new session for rstudio-server

I am running rstudio-server on a virtualised (vmware-player) ubuntu machine, and processing lots of data into the ram. I find that after some inactivity that the session suspends the data. The problem is that it takes a VERY long time to resume this session and it is making both the host machine and virtual machine lag very badly.

I just want to kill the session and start a new fresh session of rstudio-server, but so far the only way I have found which does this is to reisub my ubuntu machine. Does anyone know a better solution?

As a side note, I think entering session-timeout-minutes=0 in /etc/rstudio/rsession.conf as per here should fix the problem of the session suspending.

like image 605
Alex Avatar asked Mar 12 '13 00:03

Alex


People also ask

How do I start a new session in R?

Opening a New Session Adding a new session is as easy as clicking “New Session” under the “Session” menu: Or by clicking the new session button on the top toolbar: This will create a new session under your current project.

Can you run 2 R sessions at once?

You can open both simultaneously, which will result in two rsessions. You can then open each script in each project, and execute each one separately. It is then on your OS to manage the core allocation.


1 Answers

I found this page, which deals with resetting the rstudio-desktop version. In my home directory, I found the folder ~/.rstudio. I renamed/deleted this folder and this loads a new rstudio-server instance.

In fact, there is a folder called suspended session in the ~/.rstudio folder, which I suspect is the thing where suspended data is stored, so maybe deleting this folder is sufficient?

like image 173
Alex Avatar answered Sep 20 '22 07:09

Alex