Hi there
Since a few days, we have issues with our DVLS server. We have peaks with high CPU usage. I was able to create a dump and anlyzed them with AI and WinDBG.
Conclusion:
During periods of high CPU utilization, the hottest thread was identified as a .NET Server GC thread. The IIS worker process has a managed heap of approximately 2.2 GB containing 5.7 million objects. Of this, approximately 1.43 GB is consumed by Connection, CredentialsConnection, and ConnectionMetaInformation objects, with around 340,000 complete Connection objects simultaneously present in memory.
The dump shows no evidence of ThreadPool starvation or significant lock contention.
Can you assist at this point?
Thank you.
Best regards, John
Hello John,
Thank you for the detailed analysis, it gives us a very good starting point.
Yes, we can help. The kind of objects in your dump matches how Devolutions Server handles entries. The IIS worker process can keep a fully loaded copy of an entry in memory after it has been read, and it makes copies of entries for some requests. The 340,000 Connection objects are not a count of entries, since one entry can hold several Connection objects, so the dump alone does not show what is driving the CPU peaks. Your entry count and what happens during the peaks will help us narrow that down.
Version 2026.3.0 fixed an issue where every user sign-in made all connected Remote Desktop Manager clients reload their whole vault from the server. If your server is older than 2026.3.0, that fix is worth having, and the current release is 2026.3.14.0.
To go further, I need a few details from you.
The exact version each of your Devolutions Server runs today, before any upgrade.
The approximate total number of entries, including user vaults.
The number of users connected at peak times, and whether the CPU peaks match busy moments such as the morning sign-ins.
Anything that changed a few days ago, such as an upgrade, an import, a new synchronizer or a script that reads entries through the API or PowerShell.
I will send you an upload link in a private message so you can send us the dump file.
The system requirements page explains how the number of entries and concurrent users affects the resources a server needs.
https://docs.devolutions.net/server/overview-of-devolutions-server/system-requirements/
Best regards,
Alexis Beauparlant
Hi Alexis
- We are using DVLS 2026.3.13.0.
- We have 3 vaults. The first (largest) vault contains nearly 15'000 entries. The second vault has 5100 entries, the third has 3100 entries. I can't say how many entries the user vaults have, i think it will be around 1000 entries in all user vaults.
- We have up to 55 users which can be connected at the same time. The CPU peaks are random, but occure more often in the afternoon as in the morning
- I made a large import of around 850 credentials a few days before we had the issue.
I upgraded the DVLS server to 8 cores and 32 gb RAM, which mitigate the issue, but even then we have times where cpu load is too high and we get disconnected from DVLS due to high response time.
Best regards, John
Hi John,
Stéfane here, from the development team. Thanks for the dump details, they help a lot. Two more things would let us confirm or rule out our current leads.
1. The full type histogram from the dump
The top three types (Connection, CredentialsConnection, ConnectionMetaInformation) look like normal entries plus credentials. To be sure nothing else is building up, could you send the first 50 rows of the type statistics, sorted by total size? Either tool works:
WinDbg with SOS loaded: !dumpheap -stat
dotnet-dump: run dotnet-dump analyze <dumpfile>, then dumpheap -stat
The output lists only type names, object counts and sizes. It contains no entry data or passwords. Please also include the total object count for Devolutions.RemoteDesktopManager.Business.Connection, so we can compare the other types against it.
2. How often the vault caches are rebuilt
When a vault's cache is invalidated, every user connected to it reloads the whole vault. That can produce the CPU spikes you're seeing in IIS. Could you run this against the DVLS database? No need to send us the output.
SELECT Name, CacheIDDate, CacheIDCount
FROM dbo.Repository
ORDER BY CacheIDDate DESC;Run it once, then again an hour or two later and again when CPU peaks. Tell us when the counts climb sharply, we'll have a better idea where to look next.
Thanks again for your help with this.
Best regards,
Stéfane Lavergne
Hi Stéfane
I will send you these information in a private message, I don't want post these information in public.
Best regards, John
Perfect, I'll have a look today.
Yesterday, I started running memory tests and might have found something. I'll validate my findings against your output and go from there.
Best regards,
Stéfane Lavergne
Hi Stéfane
Thanks for taking care, I'm curious about your findings.
Best regards, John
Hi John,
Your dump showed about 19 full vault loads running at the same time. We rebuilt the scenario on a large test database (25,000 vaults, close to 3 million entries) and found two problems, both now fixed:
Every vault load waited for a cache refresh that rebuilt the server's index, even when nothing had changed. Before answering, a vault load waits for a refresh of the server's in-memory entry cache. Concurrent loads share a single refresh, but each refresh rebuilt the cache's lookup dictionaries over every entry in the database, even when no entry had changed. With several clients loading vaults, refreshes ran back to back, so the server was rebuilding almost constantly and every load waited behind it. A refresh that finds no change now keeps the existing dictionaries. (The big win)
Every entry the server read allocated sub-objects it didn't need. Each full vault load works on copies of the vault's entries. Every copy got its own usage statistics and temporary connection data, even when the entry had none. Your memory dump had about 330,000 of each, roughly 100 MB of empty objects for the garbage collector to clean up. These objects are now created only when an entry actually has that data.
On our test database, with 55 simultaneous clients, the server handled about 2.7 times as many vault loads, and the typical load time dropped from 1.7 s to 0.5 s.
These fixes will be in the next 2026.3 update and in 2027.1.
Furthermore 2027.1 also changes how the server reads from the database: rows are read straight into entries, without first copying the whole result into an intermediate memory structure. That cuts memory use and garbage collection further.
Could you try the next 2026.3 update once it's out and let me know whether the CPU usage goes back to normal?
Best regards,
Stéfane Lavergne
Hi Stéfane
Thank you for the explanation. I will give a try as soon the next version is available.
Best regards, John