Bug #2785

Windows, can't run multiple instances of TXM

Added by Matthieu Decorde 4 months ago.

Status:New Start date:03/18/2020
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Stats / R Spent time: -
Target version:TXM 0.8.2

Description

We can't run multiple instance of TXM on Windows because Rserve (on Windows) can't manage more than one connection
quote from RServe documentation:

Although Rserve works on Windows it is not recommended to use it on that platform. Windows lacks important features that make the separation of namespaces possible, therefore Rserve for Windows works in cooperative mode only, that is only one connection at a time is allowed and all subsequent connections share the same namespace. Briefly: don't use Windows unless you really have to. There is a DCOM interface available for R, you may be better off with that solution. 

hypothesis

Using a different port (current 6311) will allow to run more R instances

Solution 1

Find out if a Rserve instance using the same port is already running and abort RStatEngine startup sequence +show a message asking to stop Rserve or the other TXM if any.

Solution 2

if hypothesis 1 is true, then use a different port if a Rserve isntance if already running

Also available in: Atom PDF