code-gnu-global icon indicating copy to clipboard operation
code-gnu-global copied to clipboard

Leaking gtags processes?

Open ljusten opened this issue 9 years ago • 4 comments

I'm using VS Code and this plugin on the (huge) Chromium code base and I'm noticing that over time more and more instances of gtags processes accumulate in my system monitor (Ubuntu 14.04). Over time, they eventually suck up 100% of my CPU resources and make my system sluggish to use. gtags runs for a long time, so I'm wondering whether the plugin just keeps kicking gtags regularly at a rate faster than instances of gtags finish, so they accumulate.

ljusten avatar Jul 15 '16 16:07 ljusten

@ljusten This plugin does not execute "gtags" which is the tagging program. It only executes "global" which queries the GTAGS db file.

austin----- avatar Aug 16 '16 06:08 austin-----

Yes, this is exact observation over my huge repository - it launches multiple global processes, which use gtags processes, and eventually they all eat 100% of time. The question is - why they have never completed?

tsafin avatar Dec 20 '16 11:12 tsafin

It looks like there was a merge that introduced auto executing gtags on save. We should probably make this optional so that big project can opt out of this. I guess some version of gtags have issues finishing big projects in time.

austin----- avatar Dec 20 '16 21:12 austin-----

Which is weird, since the gtags call triggered by filesave incremental update. Should be fast.

Perhaps this can be solved with another gtags version or maybe a semaphore, preventing more processes to spawn until the first has finished.

csholmq avatar Dec 21 '16 04:12 csholmq