Run Rserve as a Windows Service

How to Install Rserve as a Windows Service with AlwaysUp

Automatically launch Rserve in the background when your computer reboots, to ensure that your R computation engine is available without anyone having to log on

Rserve is a network application that accepts and fulfills requests to evaluate R expressions.

To install Rserve as a Windows Service with AlwaysUp:

  1. If you have not already done so, download and install the latest version of R for Windows. Install Rserve as well.

  2. Ensure that you can run the Rserve executable (Rserve.exe) without error.

    If you installed R in the default location on a 64-bit machine, the executable will be here (but maybe with a different version number):

    C:\Program Files\R\R-3.6.1\bin\x64\Rserve\libs\x64\Rserve.exe

    Note that the first time we double-clicked on Rserve.exe, we were greeted with this error:

    Rserve System Error

    Adding the full path to our R libs folder (C:\Program Files\R\R-3.6.1\bin\x64) to the PATH system environment variable resolved the problem:

    Rserve ready to answer queries

  3. Download and install AlwaysUp, if necessary.

  4. Start AlwaysUp.

  5. Select Application > Add to open the Add Application window:

    Add Application

  6. On the General tab:

    • In the Application field, enter the full path to the Rserve executable, Rserve.exe.

      We found it here on our machine:

      C:\Program Files\R\R-3.6.1\bin\x64\Rserve\libs\x64\Rserve.exe
    • In the Name field, enter the name that you will call the application in AlwaysUp. We have stuck with the default of Rserve but you can specify another name if you like.

    Rserve Windows Service: General Tab

  7. Click over to the Logon tab and enter the username and password of the account in which you installed and run Rserve. Rserve should run in this account to find any settings you have configured.

    And if you're on Windows 8/7 or Server 2016/2012/2008, we recommend checking the Hide the application's windows in Session 0 to avoid annoying alerts from the Interactive Services Detection service as Rserve chugs away in the background.

    Rserve Windows Service: Logon Tab

  8. Switch to the Startup tab and check the Ensure that the Windows networking components have started box. Rserve communicates via TCP/IP and this option will keep the server from starting before the network is ready.

    Rserve Windows Service: Startup Tab

  9. We're done configuring Rserve as a service so click the Save button to record your settings. In a couple of seconds, an application called Rserve will show up in the AlwaysUp window. It is not yet running though and the state will be "Stopped":

    Rserve Windows Service: Created

  10. To start Rserve from AlwaysUp, choose Application > Start "Rserve". In a few seconds, the status will change to "Running":

    Rserve Windows Service: Running

    Click the green circle to show the details of the running process:

    Rserve Windows Service: Running Information

  11. That's it! Next time your computer boots, Rserve will start up immediately, in the background, without anyone needing to log on. Please restart your PC now and test that everything works as expected after Windows comes back to life.

    And please feel free to edit Rserve in AlwaysUp to check out the many other settings that may be appropriate for your environment. For example, send email alerts if it stops, restart the server nightly to cure memory leaks, boost Rserve's priority to support computationally expensive tasks, and much more.



Rserve not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a windows service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and Rserve. The AlwaysUp Event Log Messages page explains the messages that may appear.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.5 New!

8.0 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!