IrineSistiana / mosdns

一个 DNS 转发器
GNU General Public License v3.0
3k stars 340 forks source link

[Bug] #757

Closed minisind closed 1 year ago

minisind commented 1 year ago

在提交之前,请确认

mosdns 版本

v5.3.1

操作系统

openwrt

Bug 描述和复现步骤

[42712.043740] Out of memory: Killed process 26843 (v2dat) total-vm:608376kB, anon-rss:42964kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:88kB oom_score_adj:0 [42805.359179] Out of memory: Killed process 29435 (v2dat) total-vm:608056kB, anon-rss:39176kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:76kB oom_score_adj:0 在新刷机的22.05版本的openwrt上跑了一晚上,早上检查发现故障。 之前发生过 MOSDNS Out of memory, 解决办法是尝试把DNS解析缓冲的默认数值改小一点。

使用的配置文件

config mosdns 'config'
    option enabled '1'
    option listen_port '9153'
    option geo_auto_update '1'
    option geo_update_week_time '7'
    option geo_update_day_time '2'
    option redirect '0'
    option adblock '1'
    option configfile '/etc/mosdns/config.yaml'
    option log_level 'info'
    option logfile '/var/log/mosdns.log'
    option cache_size '3600'
    option cache_survival_time '14400'
    option dump_file '0'
    option concurrent '2'
    option idle_timeout '33'
    option minimal_ttl '0'
    option maximum_ttl '0'
    option custom_local_dns '1'
    option enable_pipeline '1'
    option insecure_skip_verify '0'
    option dns_leak '1'
    option cloudflare '0'
    option listen_port_api '9091'
    option bootstrap_dns '119.29.29.29'
    option apple_optimization '0'
    list local_dns '223.6.6.6'
    list local_dns '119.28.28.28'
    list local_dns '114.114.114.114'
    list remote_dns 'tls://1.1.1.1'
    list remote_dns 'tls://9.9.9.9'
    list remote_dns 'tls://149.112.112.112'
    list remote_dns 'tls://208.67.222.222'
    list remote_dns 'tls://208.67.220.220'
    option enable_ecs_remote '0'
    option github_proxy 'https://cdn.jsdelivr.net/'
    option prefer_ipv4 '1'
    list ad_source 'geosite.dat'
    list ad_source 'https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-domains.txt'
    list ad_source 'https://raw.githubusercontent.com/Cats-Team/AdRules/main/mosdns_adrules.txt'
    list ad_source 'file:///etc/config/ytb_black_list.txt'

mosdns 的 log 记录

No response

minisind commented 1 year ago

OPENWRT的路由器上无此目录,看到故障时已经重启。查不到 '/var/log/mosdns.log' 现在已经将LOG 改为 '/tmp/mosdns.log' 如果后续有 LOG ,会再 comment