Open fekazar opened 1 month ago
Have you tried increasing the memory limit to see if it gets better? I'm not sure if it's due to usage or a real memory leak. 🤔
When there was no memory limit for the service the whole system could freeze and I had to reboot the server. With this limit it can recover by itself. I grep the memory usage from systemctl every 5 minutes, here is that simple log, it doesn't look like there is a leak.
I also have a service restart at every 33-rd minute in crontab.
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 1min 57s ago
Memory: 1.5M (max: 400.0M available: 398.4M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 6min ago
Memory: 1.5M (max: 400.0M available: 398.4M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 11min ago
Memory: 10.9M (max: 400.0M available: 389.0M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 16min ago
Memory: 8.3M (max: 400.0M available: 391.6M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 21min ago
Memory: 8.0M (max: 400.0M available: 391.9M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 26min ago
Memory: 7.3M (max: 400.0M available: 392.6M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 31min ago
Memory: 9.7M (max: 400.0M available: 390.2M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 36min ago
Memory: 29.1M (max: 400.0M available: 370.8M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 41min ago
Memory: 16.6M (max: 400.0M available: 383.3M)
Active: active (running) since Wed 2024-09-18 07:33:04 UTC; 46min ago
Memory: 20.5M (max: 400.0M available: 379.4M)
Active: active (running) since Wed 2024-09-18 08:21:57 UTC; 3min 4s ago
Memory: 25.3M (max: 400.0M available: 374.6M)
Active: active (running) since Wed 2024-09-18 08:21:57 UTC; 8min ago
Memory: 25.9M (max: 400.0M available: 374.0M)
Active: active (running) since Wed 2024-09-18 08:33:05 UTC; 1min 56s ago
Memory: 18.2M (max: 400.0M available: 381.7M)
Active: active (running) since Wed 2024-09-18 08:33:05 UTC; 6min ago
Memory: 10.4M (max: 400.0M available: 389.5M)
Active: active (running) since Wed 2024-09-18 08:33:05 UTC; 11min ago
Memory: 19.4M (max: 400.0M available: 380.5M)
Verify steps
Version
linux/amd64, go1.22.5, 488e5b2
What OS are you seeing the problem on?
Linux
Description
Tun2socks process is getting killed every day at about the same time with oom. I've tried scheduling the service restart every hour and decreasing buffers sizes, but the accident still occurs.
CLI or Config
My systemd unit file
Logs
How to Reproduce
I suppose launching the attached config is enough.