Task #1349

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

Ajouté par Sebastien Jacquot il y a presque 4 ans. Mis à jour il y a 2 mois.

Statut:New Début:21/05/2015
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Development Temps passé: -
Version cible: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 "??????"

Historique

#1 Mis à jour par Sebastien Jacquot il y a presque 4 ans

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 Mis à jour par Sebastien Jacquot il y a presque 4 ans

  • Sujet changé de TBX: kill R and CQP process on TXM start-up à TBX: kill R and CQP processes on TXM start-up
  • Description mis à jour (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 Mis à jour par Sebastien Jacquot il y a presque 4 ans

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

#4 Mis à jour par Sebastien Jacquot il y a presque 4 ans

  • Description mis à jour (diff)

#5 Mis à jour par Matthieu Decorde il y a plus de 3 ans

  • Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)

#6 Mis à jour par Sebastien Jacquot il y a presque 2 ans

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 Mis à jour par Sebastien Jacquot il y a 6 mois

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#8 Mis à jour par Sebastien Jacquot il y a 2 mois

  • Version cible changé de TXM 0.8.0 à TXM X.X

Formats disponibles : Atom PDF