You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am investigating a suspected memory leak in the Omnisharp Language Client. When configuring the client to handle a periodic notification from an external Language Server, I consistently observe memory usage growing unbounded.
The memory profiler within VS indicates this is coming from many Newtonsoft.Json.Linq.* objects related to the OmniSharp.Extensions.JsonRpc.Server.Notification class.
These objects appear to grow even when constructing a "no-op" notification handler, which leads me to believe it may be internal to this library.
Here is how I am constructing my Language Client -
Processprocess=newProcess(...configured for myLangServer.exe...);LanguageClientOptionsoptions=newLanguageClientOptions();options.WithInput(process.StandardOutput.BaseStream).WithOutput(process.StandardInput.BaseStream).OnNotification("foo/bar",(MyNotificationnotification)=>{Debug.Print($"Notification received.");});varlanguageClient=OmniSharp.Extensions.LanguageServer.Client.LanguageClient.Create(options);awaitlanguageClient.Initialize(CancellationToken.None);
I am using version 0.19.7 of the Omnisharp.Extensions.LanguageClient NuGet package. Attaching an image detailing an example of one of these Newtonsoft objects.
The text was updated successfully, but these errors were encountered:
primarily by increasing timeouts, ensuring testclient and testlanguageserver is disposed properly, and adding missing conditionawaiters.
Likely still a testclient memory leak - see OmniSharp/csharp-language-server-protocol#1037
Hello
I am investigating a suspected memory leak in the Omnisharp Language Client. When configuring the client to handle a periodic notification from an external Language Server, I consistently observe memory usage growing unbounded.
The memory profiler within VS indicates this is coming from many Newtonsoft.Json.Linq.* objects related to the OmniSharp.Extensions.JsonRpc.Server.Notification class.
These objects appear to grow even when constructing a "no-op" notification handler, which leads me to believe it may be internal to this library.
Here is how I am constructing my Language Client -
I am using version 0.19.7 of the Omnisharp.Extensions.LanguageClient NuGet package. Attaching an image detailing an example of one of these Newtonsoft objects.
The text was updated successfully, but these errors were encountered: