Menu

#2303 Language tool running with TeXstudio consumes high cpu

open
nobody
1
2017-11-03
2017-11-02
hehe_br
No

Hi,
Whe I run Languagetool with TeXstudio it consumes high cpu.
If I run the Languagetool server on its own it runs ok, but if I open TeXstudio the java process related to it takes high cpu usage, if I close TeXstudio it comes back to normal.

TeXstudio 2.12.6 (hg 6631:16db084dae24)
Using Qt Version 5.6.2, compiled with Qt 5.6.2 R

LanguageTool-3.9

java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

openSUSE 42.3 x64

Thanks for your help and attention.

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-11-02

    does it happen with no/only one empty document open ?

     
  • hehe_br

    hehe_br - 2017-11-03

    Hi I had 16 tabs open, then I closed them all.
    If I open TeXstudio with no document Languagetool does not run.
    If I open TeXstudio with my root document (only commands) Languagetool runs normally.
    If I then open a text file (that is input) Languagetool uses high cpu, it uses high cpu for a while and stop, if I open another file it goes high cpu for a while and it comes back to normal, the same happen to the other files.
    It seems it takes some time to analyse each document that was open, all of those files are quite big.
    If I close TeXstudio and then open again with the same files opened it consumes high cpu. If I close the files after a while the cpu comes back to normal.

    Would it be possible perhaps to set the instruction for Languagetool to analyse only the active tab and not all open files at the same time?

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-11-03

    when a tab is opened, it is analyzed. I don't see a sensible way around this

     

Log in to post a comment.