atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

tern server gets slow and heavy over time

Open TitanNano opened this issue 7 years ago • 5 comments

When I start atom the suggestions appear fast and I have no delay. But after maybe one or two hours of coding the delay between I stop to type and the suggestions appear grows longer and longer.

Often the "Atom Helper" process which runs the tern server also grows up to 1 GB RAM and often requires a big amount of the CPU.

If I kill the tern server process and then restart it or completely restart Atom everything is snappy again.

TitanNano avatar Dec 19 '16 19:12 TitanNano

I've been seeing a generic error about "call stack exceeded" which triggers a server restart since installing atom-ternjs. It does seem like optimizations are in order.

michaeljonathanblack avatar Jan 25 '17 03:01 michaeljonathanblack

The pending requests grow over time. Some requests never receive a message from the server. The next release will includes an option to configure the max amount of pending requests until a server restart is automatically triggered.

tststs avatar Feb 17 '17 22:02 tststs

You had time to test the latest version of the package? Does it perform better, the same or even worse then before?

Greetings

tststs avatar Mar 03 '17 17:03 tststs

@tststs well I didn't have any issues since the update. I think it performs better than before.

TitanNano avatar Mar 03 '17 18:03 TitanNano

I've been experiencing high CPU usage over time running latest version on linux. I need to restart atom to make it go away.

crdil avatar Mar 12 '17 22:03 crdil