vieiro commented on PR #3978:
URL: https://github.com/apache/netbeans/pull/3978#issuecomment-1114019896
So I did some testing and yes, each LSP server (TypeScript and C/C++) is
handled in its own thread as intended, so if a LSP server is slow or something
the rest won't we affected. I couldn't detect any problems with LSP stuff.
Here is the first one...
```
"pool-5-thread-1" #76 prio=5 os_prio=0 cpu=105,90ms elapsed=263,25s
tid=0x00007f7a9409b800 nid=0xe0cd runnable [0x00007f7a6c098000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes([email protected]/Native Method)
at
java.io.FileInputStream.read([email protected]/FileInputStream.java:279)
at
java.io.BufferedInputStream.fill([email protected]/BufferedInputStream.java:252)
at
java.io.BufferedInputStream.read([email protected]/BufferedInputStream.java:271)
- locked <0x000000008ce139d0> (a
java.lang.ProcessImpl$ProcessPipeInputStream)
at
org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:79)
at
org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at
java.util.concurrent.Executors$RunnableAdapter.call([email protected]/Executors.java:515)
at
java.util.concurrent.FutureTask.run([email protected]/FutureTask.java:264)
at
java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1128)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:628)
at java.lang.Thread.run([email protected]/Thread.java:829)
```
... and the second one.
```
"pool-1-thread-1" #52 prio=5 os_prio=0 cpu=60,85ms elapsed=320,74s
tid=0x00007f7a900ad800 nid=0xe062 runnable [0x00007f7a6c699000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes([email protected]/Native Method)
at
java.io.FileInputStream.read([email protected]/FileInputStream.java:279)
at
java.io.BufferedInputStream.fill([email protected]/BufferedInputStream.java:252)
at
java.io.BufferedInputStream.read([email protected]/BufferedInputStream.java:271)
- locked <0x0000000088a86c90> (a
java.lang.ProcessImpl$ProcessPipeInputStream)
at
org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:79)
at
org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at
java.util.concurrent.Executors$RunnableAdapter.call([email protected]/Executors.java:515)
at
java.util.concurrent.FutureTask.run([email protected]/FutureTask.java:264)
at
java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1128)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:628)
at java.lang.Thread.run([email protected]/Thread.java:829)
```
Next step is to extract the commit for `ide/lsp.client`and push it to
master, and remove it from here.
[netbeans-ts-cpp-threads.txt](https://github.com/apache/netbeans/files/8597461/netbeans-ts-cpp-threads.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists