Task #1349

TBX: kill R and CQP processes on TXM start-up

Added by Sebastien Jacquot almost 4 years ago. Updated 4 months ago.

Status:New Start date:05/21/2015
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Development Spent time: -
Target version:TXM X.X

Description

[WIP]

This issue is dedicated to validate the methods used to kill R and CQP processes in case of TXM crash.
These current methods are different according the OS and the OS version.

Validation tests

  • start TXM on Windows, please provide the version of the OS, behaviors are different between Windows XP and Windows 7/8
  • use CQP in server mode by checking "Use network protocol" in "Tools\Parameters\TXM\Advanced\Corpus Engine"
  • restart TXM
  • open a task manager
    => check you have only 1 process named "Rserve.exe" and only 1 process named "cqpserver.exe"
  • kill the process named "TXM.exe"
  • restart TXM
  • open a task manager
    => check there are no errors in console log
    => check you have only 1 process named "Rserve.exe" and only 1 process named "cqpserver.exe"
  • start TXM on Linux
  • use CQP in server mode by checking "Use network protocol" in "Tools\Parameters\TXM\Advanced\Corpus Engine"
  • restart TXM
  • open a task manager
    => check you have only 1 process named "?????" and only 1 process named "?????"
  • kill the process named "TXM"
  • restart TXM
  • open a task manager
    => check there are no errors in console log
    => check you have only 1 process named "?????" and only 1 process named "??????"
  • start TXM on Mac
  • use CQP in server mode by checking "Use network protocol" in "Tools\Parameters\TXM\Advanced\Corpus Engine"
  • restart TXM
  • open a task manager
    => check you have only 1 process named "?????" and only 1 process named "?????"
  • kill the process named "TXM"
  • restart TXM
  • open a task manager
    => check there are no errors in console log
    => check you have only 1 process named "?????" and only 1 process named "??????"

History

#1 Updated by Sebastien Jacquot almost 4 years ago

We should improve the current used method. We should store the process ids of R and CQP in a file when launching TXM => CQP => R and delete this file when quitting TXM.
When launching TXM, we need to check if the file exists and kill the process by their ids + names, not only by their names as we do now, resulting to kill all running R for example.

There are some questions, does TXM use some specific ports for R and CQP or default ports ? Can multiple R or CQP servers be launched at same time if listening on some different ports ?

#2 Updated by Sebastien Jacquot almost 4 years ago

  • Subject changed from TBX: kill R and CQP process on TXM start-up to TBX: kill R and CQP processes on TXM start-up
  • Description updated (diff)
Behavior on Windows 7:
  • TXM starts even in there's already a running RServe processes and launches a new RServe process leading to multiple RServe processes (therefore the kill task doesn't seem to work as expected)

#3 Updated by Sebastien Jacquot almost 4 years ago

Behavior on Windows XP is the same as Window 7 described just above.

#4 Updated by Sebastien Jacquot almost 4 years ago

  • Description updated (diff)

#5 Updated by Matthieu Decorde over 3 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#6 Updated by Sebastien Jacquot about 2 years ago

Also the command line to run rserve doesn't taking account of the version of R or the platform (32 or 64bit), for example on Win 7 64bit the path targets the i386 directory:

"C:\Tools\TEXTOM~1\TXM\TXM_07~1.8_6\R\library\Rserve\libs\i386\Rserve.exe" --RS-encoding utf8 --no-save --slave --encoding utf8 --RS-port 6311

[FIXED]

#7 Updated by Sebastien Jacquot 8 months ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#8 Updated by Sebastien Jacquot 4 months ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF