mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #511] DNS stops responding #175
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#175
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rayout on GitHub (Jul 12, 2024).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/511
What is Happening
DNS stops responding at random times. It just freezes.
In this case, it can work for quite a long time before freezing
Specs
@rayout commented on GitHub (Jul 15, 2024):
Today it froze again
@mageddo commented on GitHub (Jul 15, 2024):
Hey @rayout I will need the full log to debug what is happening to cause this behavior, can you share it?
docker logs ${CONTAINER_ID} &> logs.log, please enable TRACE log level to give more details.Another question: From which version did you notice this behavior?
@mageddo commented on GitHub (Jul 22, 2024):
I will keep using DPS to see if I also get the issue
@dmekhov commented on GitHub (Jul 30, 2024):
Sometimes (rarely) I also face the same (maybe different) issue (dns service stops answering) .
I have that in my logs (at 3.24.0 version):
@mageddo commented on GitHub (Jul 30, 2024):
@dmekhov @rayout it can be related, DPS default heap size is set to 10m. You can test if increase the value fixes the issue for you by running
@dmekhov commented on GitHub (Jul 30, 2024):
Can I use env variables to configure it? (
JAVA_OPTS,JVM_OPTS, etc ?)I'm using docker compose setup.
(for now I set it via the command property and will check if it helps)
@mageddo commented on GitHub (Jul 30, 2024):
I'm afraid you can't use the JVM env to configure native image binaries, but you can use the
commandoption at the docker-compose file@dmekhov commented on GitHub (Jul 30, 2024):
Yes, thanks, I use it now.
Ok, I'll be watching the result (but this error didn't happen often for me, so it can take a while)
@mageddo commented on GitHub (Jul 30, 2024):
DPS got stuck today for me, I also got
java.lang.OutOfMemoryErrorerrr at the logs.logs.txt
@mageddo commented on GitHub (Jul 30, 2024):
FYI: Just released DPS
3.25.0, it increases resources utilization optimization, maybe it can fix the issue without the need of increasing the heap size.@mageddo commented on GitHub (Jul 31, 2024):
I reproduced the freezing scenario, reported by @rayout , it is different from the reported by @dmekhov , they are two different root causes causing the same behavior:
OutOfMemoryError
Scenario
When receiving a high number of requests considering the actual memory limits set, sometimes the heap exceed the size causing DPS freezing.
Solution
Optimizations were made at #436 version:
3.25.1Increase Heap Size
Random Freezing due deadlock
When receiving a high number of concurrent requests, the DPS cache can cause a deadlock, eventually locking all it's threads and freezing DPS
Solution
Fixes was made at #522, version
3.25.2@mageddo commented on GitHub (Jul 31, 2024):
A could have optimization will also be made at #524
@rayout commented on GitHub (Aug 2, 2024):
Can not check new version. Have this error:
@mageddo commented on GitHub (Aug 7, 2024):
Sorry for that, fixed on
3.25.10, can you check it? @rayout@rayout commented on GitHub (Sep 11, 2024):
Thank you! I tested it for 2 weeks. Everything works great.
After 14 days, it froze with the error: "Garbage-collected heap size exceeded. Consider increasing the maximum Java heap size."
I am using version 3.25.10-snapshot. The startup settings are: "command: -XX:MaxHeapSize=50m -XX:MaxNewSize=10m."
@mageddo commented on GitHub (Sep 11, 2024):
Thanks for your feedback, seems like the freezing scenario is fixed then.
Talking about the Heap Size, please keep calibrating to find an optimal setting, I can consider change the default value in the future.
@rayout commented on GitHub (Sep 19, 2024):
I think we can close the task. Thank you for help!