{"action":"opened","issue":{"url":"https://api.github.com/repos/Jrohy/multi-v2ray/issues/68","repository_url":"https://api.github.com/repos/Jrohy/multi-v2ray","labels_url":"https://api.github.com/repos/Jrohy/multi-v2ray/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Jrohy/multi-v2ray/issues/68/comments","events_url":"https://api.github.com/repos/Jrohy/multi-v2ray/issues/68/events","html_url":"https://github.com/Jrohy/multi-v2ray/issues/68","id":383995799,"node_id":"MDU6SXNzdWUzODM5OTU3OTk=","number":68,"title":"可以优化下内存吗","user":{"login":"zerozero123","id":39449060,"node_id":"MDQ6VXNlcjM5NDQ5MDYw","avatar_url":"https://avatars1.githubusercontent.com/u/39449060?v=4","gravatar_id":"","url":"https://api.github.com/users/zerozero123","html_url":"https://github.com/zerozero123","followers_url":"https://api.github.com/users/zerozero123/followers","following_url":"https://api.github.com/users/zerozero123/following{/other_user}","gists_url":"https://api.github.com/users/zerozero123/gists{/gist_id}","starred_url":"https://api.github.com/users/zerozero123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerozero123/subscriptions","organizations_url":"https://api.github.com/users/zerozero123/orgs","repos_url":"https://api.github.com/users/zerozero123/repos","events_url":"https://api.github.com/users/zerozero123/events{/privacy}","received_events_url":"https://api.github.com/users/zerozero123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T14:53:42Z","updated_at":"2018-11-24T14:53:42Z","closed_at":null,"author_association":"NONE","body":"为了更好能够提供更好的性能，V2Ray 有一个缓存机制，在上下游网络速率有差异时会缓存一部分数据。举个实际的例子，假如你在下载小姐姐，网站到你的 VPS 的速度有 500 Mbps，而 VPS 到家里宽带只有 50 Mbps，V2Ray 在 VPS 会以比较高的速率把小姐姐先下好再慢慢传到电脑里。默认情况下 V2Ray 对每个连接的缓存大小是 10 MBytes （现在默认缓存最大为 512 KBytes），也就是说如果下载小姐姐开了 32 线程，那么 V2Ray 最高会缓存 320 MBytes 的数据。这样一来那些内存只有 256 MBytes 甚至是 128 MBytes 的 VPS 压力就会比较大。所幸的是缓存的大小我们是可以修改的，减小缓存的大小可以降低对内存的占用，会对小内存机器比较友好。\r\n我就是128MBytes的机器，用脚本安装好之后，我感觉我的机器贼卡。能在脚本中提供一项内存优化吗？\r\n我看了官方的内存优化解释，我尝试着解决，看不到 /etc/systemd/system/v2ray.service文件。\r\n参考链接：https://toutyrater.github.io/app/optimization.html#%E4%BF%AE%E6%94%B9%E7%BC%93%E5%AD%98"}}
{"actor":{"display_login":"zerozero123"}}