V2ray-core: vps cpu占用过高

Created on 7 Mar 2018  ·  2Comments  ·  Source: v2ray/v2ray-core

Please skip to the English section below if you don't write Chinese.

中文:
提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
客户端和服务端都是3.11
2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
客户端使用v2rayN全局代理
3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
服务端cpu占用过一段时间就高到99% 必须重启解决
4) 你期待看到的正确表现是怎样的?
cpu占用不应过高
5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:
{
"log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
},
"inbound": {
    "port": 9261,
    "protocol": "vmess",
    "settings": {
        "clients": [
            {
                "id": "5b6e959f-ce7d-11c9-b5d3-************",
                "level": 1,
                "alterId": 64
            }
        ]
    },
    "streamSettings": {
        "network": "kcp"
    },
    "detour": {
        "to": "vmess-detour-163532"
    }
},
"outbound": {
    "protocol": "freedom",
    "settings": {}
},
"inboundDetour": [
    {
        "protocol": "vmess",
        "port": "10000-10010",
        "tag": "vmess-detour-163532",
        "settings": {},
        "allocate": {
            "strategy": "random",
            "concurrency": 5,
            "refresh": 5
        },
        "streamSettings": {
            "network": "kcp"
        }
    }
],
"outboundDetour": [
    {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
    }
],
"routing": {
    "strategy": "rules",
    "settings": {
        "rules": [
            {
                "type": "field",
                "ip": [
                    "0.0.0.0/8",
                    "10.0.0.0/8",
                    "100.64.0.0/10",
                    "127.0.0.0/8",
                    "169.254.0.0/16",
                    "172.16.0.0/12",
                    "192.0.0.0/24",
                    "192.0.2.0/24",
                    "192.168.0.0/16",
                    "198.18.0.0/15",
                    "198.51.100.0/24",
                    "203.0.113.0/24",
                    "::1/128",
                    "fc00::/7",
                    "fe80::/10"
                ],
                "outboundTag": "blocked"
            }
        ]
    }
}

}

// 在这里附上服务器端配置文件
    客户端配置:
   {
    "log": {
        "loglevel": "warning"
    },
    "inbound": {
        "listen": "127.0.0.1",
        "port": 1080,
        "protocol": "socks",
        "settings": {
            "auth": "noauth",
            "udp": true,
            "ip": "127.0.0.1"
        }
    },
    "outbound": {
        "protocol": "vmess",
        "settings": {
            "vnext": [
                {
                    "address": "**.**.**.*",
                    "port": 9261,
                    "users": [
                        {
                            "id": "5b6e959f-ce7d-11c9-b5d3-***********",
                            "level": 1,
                            "alterId": 64
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "kcp"
        }
    },
    "outboundDetour": [
        {
            "protocol": "freedom",
            "settings": {},
            "tag": "direct"
        }
    ],
    "routing": {
        "strategy": "rules",
        "settings": {
            "rules": [
                {
                    "type": "field",
                    "port": "54-79",
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "port": "81-442",
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "port": "444-65535",
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "domain": [
                        "gc.kis.scr.kaspersky-labs.com"
                    ],
                    "outboundTag": "direct"
                },
                {
                    "type": "chinasites",
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "ip": [
                        "0.0.0.0/8",
                        "10.0.0.0/8",
                        "100.64.0.0/10",
                        "127.0.0.0/8",
                        "169.254.0.0/16",
                        "172.16.0.0/12",
                        "192.0.0.0/24",
                        "192.0.2.0/24",
                        "192.168.0.0/16",
                        "198.18.0.0/15",
                        "198.51.100.0/24",
                        "203.0.113.0/24",
                        "::1/128",
                        "fc00::/7",
                        "fe80::/10"
                    ],
                    "outboundTag": "direct"
                },
                {
                    "type": "chinaip",
                    "outboundTag": "direct"
                }
            ]
        }
    }
}
    // 在这里附上客户端配置

Most helpful comment

动态端口的可用范围请保持在concurrency数值的3倍以上。

All 2 comments

动态端口的可用范围请保持在concurrency数值的3倍以上。

已解决关闭 是动态端口的范围问题

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FTAndy picture FTAndy  ·  4Comments

sunsan05 picture sunsan05  ·  3Comments

cnperi picture cnperi  ·  4Comments

shuangyuxiaoyi picture shuangyuxiaoyi  ·  4Comments

limaofu picture limaofu  ·  3Comments