-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug] out of memory #1782
Comments
this is the full log when it crashed, hope it will help to analyze the problem, thanks in advance |
Check if the memory is exhausted. There is no good solution for memory exhaustion. |
I doubt that it's because there is not enough memory, if so, how to explain that it starts up properly, and running for one day and then panics due to out of memory |
After I reboot the router, the program lives longer(several days till now), whereas before the reboot, the program almost panics as soon as I started it. So it seems like it's because there is not enough memory in deed... I want to verify that further, can you show me the minimum memory requirement of the program? @Skyxim |
Memory is related to your configuration. You may need to test how much is needed to start under your own configuration. When there is no connection, the minimum memory. The number of proxy nodes, rules, rule sets, and whether to use GEOIP, etc. These belong to static memory and must be used at startup. Depending on the number of active connections, TCP/UDP will need a cache. In particular, the QUIC class requires more memory. This part of the memory is the main memory usage. ps. In my case, I start with about 20MB, and when there are about 30-60 active connections, it takes up about 60-80MB of memory. |
Thanks for the quick response! this is the memory usage of the system when the program panics: total used free shared buffers cached
Mem: 933968 708636 225332 109600 0 173148
-/+ buffers/cache: 535488 398480
Swap: 0 0 0 this is the memory usage when the program works fine: total used free shared buffers cached
Mem: 933968 517864 416104 6956 0 64124
-/+ buffers/cache: 453740 480228
Swap: 0 0 0 this is the memory usage seen from Mem total:933968 anon:84308 map:33204 free:416628
slab:261404 buf:0 cache:64124 dirty:0 write:0
Swap total:0 free:0
PID^^^VSZ^VSZRW RSS (SHR) DIRTY (SHR) STACK COMMAND
2786 1240m 84892 50356 0 33068 0 132 mihomo-linux-arm64-v1.19.1 -d /jffs/clash/ the free memory is indeed smaller when the program panics, but it seems there is still enough memory... can you show me some pointer? Thanks! @Skyxim |
The system you are using may reserve the minimum available memory to ensure stability; this is not a program issue |
Verify steps
Operating System
Linux
System Version
Linux RT-AX86U-3E90 4.1.52 #2 SMP PREEMPT Sat Dec 3 14:03:02 EST 2022 aarch64 ASUSWRT-Merlin
Mihomo Version
mihomo-linux-arm64-v1.19.1
Configuration File
Description
it panics due to out of memory after running for almost one day
Reproduction Steps
Logs
The text was updated successfully, but these errors were encountered: