v2fly / fhs-install-v2ray

Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd
GNU General Public License v3.0
6.28k stars 1.45k forks source link

运行 v2ray 占用很高 #154

Closed gd4Ark closed 4 years ago

gd4Ark commented 4 years ago

使用这里的安装脚本后,发现 cpu 和内存占用很大,换了 docker 部署的方式也一样。

image

我的配置:

{
    "inbounds": [
      {
        "port": 1080,
        "protocol": "socks",
        "sniffing": {
          "enabled": true,
          "destOverride": ["http", "tls"]
        },
        "settings": {
          "auth": "noauth",
          "udp": false
        }
      },
      {
        "port": 1081,
        "protocol": "http",
        "sniffing": {
          "enabled": true,
          "destOverride": ["http", "tls"]
        },
        "settings": {
          "auth": "noauth",
          "udp": false
        }
      }
    ],
    "outbounds": [
      {
        "protocol": "vmess",
        "settings": {
          "vnext": [
            {
              "address": "xxx",
              "port": 33020,
              "users": [
                {
                  "id": "8D79C035-6D79-E5EB-6E32-27A151C94692",
                  "alterId": 0
                }
              ]
            }
          ]
        }
      }
    ],
    "dns": {
      "servers": [
        "114.114.114.114",
        {
          "address": "1.1.1.1",
          "port": 53,
          "domains": ["geosite:geolocation-!cn"]
        }
      ]
    },
    "routing": {
      "domainStrategy": "IPOnDemand",
      "rules": [
        {
          "type": "field",
          "outboundTag": "direct",
          "domain": ["geosite:cn"]
        },
        {
          "type": "field",
          "outboundTag": "direct",
          "ip": ["geoip:cn", "geoip:private"]
        },
        {
          "type": "field",
          "outboundTag": "proxy",
          "network": "udp,tcp"
        }
      ]
    }
  }

PS: 与 https://github.com/v2ray/v2ray-core/issues/1961 的问题是一样的

IceCodeNew commented 4 years ago

换 docker 部署也一样那就说明和本项目没关系。 麻烦转去上游提问,不要在这里浪费时间。