Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdguardSvc.exe is using 4.5GB of RAM #5016

Closed
war59312 opened this issue Jan 24, 2024 · 27 comments
Closed

AdguardSvc.exe is using 4.5GB of RAM #5016

war59312 opened this issue Jan 24, 2024 · 27 comments

Comments

@war59312
Copy link

AdGuard version

7.16

Browser version

Edge 120.0.2210.144

OS version

Windows 11 23H2 (OS Build 22631.3007)

What filters do you have enabled?

AdGuard Base filter, AdGuard Chinese filter, AdGuard Dutch filter, AdGuard French filter, AdGuard German filter, AdGuard Russian filter, AdGuard Spanish/Portuguese filter, AdGuard Tracking Protection filter, AdGuard Social Media filter, AdGuard Annoyances filter, EasyList Czech and Slovak, EasyList Italy, Liste AR, Estonian List, I don't care about cookies

What Stealth Mode options do you have enabled?

No response

Support ticket ID

No response

Issue Details

Unkown, just realized the computer going slow and opened Process Explorer and found that AdguardSvc.exe using 4.5GB of RAM.

Actual Behavior

No response

Expected Behavior

Don't expect for AdguardSvc.exe to be using 4.5GB of RAM

Screenshots

No response

Additional Information

Other filters:

AdGuard Ukrainian filter
Persian Blocker
IndianList

@war59312
Copy link
Author

war59312 commented Jan 24, 2024

AdguardRAM2
AdguardRAM1

Few mins later now to 4.8GB of RAM usage.
AdguardRAM3
And now adguard just crashed.

@zubrRB
Copy link

zubrRB commented Jan 25, 2024

Внедрили поддержку 64-битности.) Попробуйте сегодняшнюю 7.17 beta 1, где некоторая оптимизация AdguardSvc.exe.

@war59312
Copy link
Author

I see, perfect timing eh

Upgraded my Adguard to 7.17 beta 1.

@Aydinv13
Copy link

@war59312 is it still relevant?

... AdguardSvc.exe using 4.5GB of RAM.

@adguard-bot adguard-bot changed the title Memory Leak in AdguardSvc.exe ? - Using 4.5GB of RAM AdguardSvc.exe is using 4.5GB of RAM Jan 29, 2024
@war59312
Copy link
Author

war59312 commented Feb 2, 2024

RAM
Afraid so, still happening with 7.17 beta 1.

All RAM is in use.

Seems to be tied to Edge, as once I close Edge I see Adguard SVC return to normal RAM use, below 50MB.

@Aydinv13
Copy link

@war59312 could you please provide us with adguard.db file (C:\ProgramData\Adguard\adguard.db) and your settings (Settings -> General Settings -> Export settings)? Send it all over here devteam@adguard.com

@rotu
Copy link

rotu commented Feb 26, 2024

I'm experiencing similar. Except it's using 30 GB memory. I just sent a message to devteam.

@adbuker
Copy link

adbuker commented Feb 27, 2024

@war59312 and @rotu, along with the sent logs and settings could you please provide us with the memory dump for the leaking adguardsvc.exe process - the small instruction you can find here

@rotu
Copy link

rotu commented Feb 27, 2024

@adbuker how do you recommend I transfer the memory dump? The larger one is 8 GB compressed

Edit: I wound up using SwissTransfer by infomaniak to transfer the files.

@adbuker
Copy link

adbuker commented Feb 28, 2024

@rotu , could you please upload to any file sharing you prefer

@northis
Copy link
Member

northis commented Mar 11, 2024

@rotu is it possible to send us the dump (using a file host service)? Have you tried to check if the problem still appears after resetting the settings to default?

@rotu
Copy link

rotu commented Mar 11, 2024

  1. I sent several dumps to the support@adguard.com email already. Do you have access to that inbox and file links?
  2. I tried again after reinstalling but I don’t think I tried with default settings. I’m doing that now.

@rotu
Copy link

rotu commented Mar 14, 2024

@northis I reset the settings to default and this issue still appears. It's probably a massive hint that, in resource monitor, the "Commit" column is showing several gigabytes whereas the "Working Set" is reasonable.

Anyway, do you still want that dump?

@northis
Copy link
Member

northis commented Mar 29, 2024

@rotu We are still working on it, your dump is very helpful, thank you. By the way, do you use AdGuard Assistant browser extension? You can try to reinstall it and check for the memory consumption again.

@rotu
Copy link

rotu commented Mar 29, 2024

I had the extension enabled and I just disabled it. I highly doubt that was a relevant issue since the problem clearly happens in the AdguardSvc.exe process, and when no browsers are running.

@rotu
Copy link

rotu commented Apr 1, 2024

@northis After disabling AdGuard Assistant, I can confirm the problem is still happening. Here are the memory details from sysinternals Process Explorer:

image

@northis
Copy link
Member

northis commented Apr 8, 2024

@rotu It is good you have Process Explorer. Could you please share the content of .NET Performance tab?

@rotu
Copy link

rotu commented Apr 8, 2024

image

@northis
Copy link
Member

northis commented Apr 12, 2024

@rotu It looks like you have software installed that keeps changing your system DNS. This causes AdGuard to reload the protection.

@northis
Copy link
Member

northis commented Apr 12, 2024

@rotu we are fixing this now, could you please reproduce the issue and send us debug logs? Here is how to collect them. Thank you in advance.

@rotu
Copy link

rotu commented Apr 12, 2024

@rotu It looks like you have software installed that keeps changing your system DNS. This causes AdGuard to reload the protection.

Interesting. I can see how this would manifest an existing memory leak but it doesn't sound like a root cause

As for DNS:
Docker desktop may be the most likely culprit. It does do some local DNS resolution, and I do have that running.
I have used ZeroTier in the past but I don't think it's running.
I also (rarely) run Unifi Network Server on my computer to manage network equipment.

I've sent debug logs to the devteam email

@northis
Copy link
Member

northis commented Apr 15, 2024

@rotu thank you for the logs. We prepared this build with possible fix, can you try it?

@rotu
Copy link

rotu commented Apr 15, 2024

@northis What's the expected memory usage? I'm still above 500MB from AdguardSvc alone, which seems excessive next to the ~100MB taken up by com.adguard.mac.adguard.network-extension on Mac.

@rotu
Copy link

rotu commented Apr 16, 2024

I can see today, on 7.17 nightly 26 (4701) that memory usage on AdguardSvc is up to 640 MB, so it looks like there are still memory leaks.

@GerhardSauer
Copy link

same with 7.17.0. (4705), after 2 days of runtime, around 940 MB (at least far better compared to before, 7 days with 40GB)

@GerhardSauer
Copy link

after 5 days 1,78 GB

@GerhardSauer
Copy link

GerhardSauer commented May 8, 2024

The image says all.
memory_leak

memory_leak2
memory_leak3

email to dev team sent with memory dump and other details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants