Giter Club home page Giter Club logo

Comments (8)

zephyrchien avatar zephyrchien commented on July 28, 2024

@Coffee-kitten 请提供一下复现方式

from realm.

Coffee-kitten avatar Coffee-kitten commented on July 28, 2024

@zephyrchien ./realm -n 65535 -d -c realm.toml 配置转发8条左右

from realm.

Coffee-kitten avatar Coffee-kitten commented on July 28, 2024

@zephyrchien ./realm -n 65535 -d -c realm.toml 配置转发8条左右

使用TOML Example实例配置进行配置

from realm.

zephyrchien avatar zephyrchien commented on July 28, 2024

日志里有报错么

连接数是否异常?

from realm.

Coffee-kitten avatar Coffee-kitten commented on July 28, 2024

日志里有报错么

连接数是否异常?

日志正常 一个端口tcp连接数1500左右

from realm.

zephyrchien avatar zephyrchien commented on July 28, 2024

信息太少了,没法定位问题

可能是由不正确的客户端实现导致的。Realm不会主动关闭连接,如果客户端不主动关闭连接,连接就会一直保持,久而久之就会积累大量不活跃的连接。这是正常行为,也未必会造成性能问题;如果主动设置超时的话反而会影响长连接。

也有可能是连接太多,消耗了太多内核内存(?) 每个连接最多会用到64k内核内存,不过同时转发1k连接也就用掉64m,转发完就释放掉了

from realm.

Coffee-kitten avatar Coffee-kitten commented on July 28, 2024

信息太少了,没法定位问题

可能是由不正确的客户端实现导致的。Realm不会主动关闭连接,如果客户端不主动关闭连接,连接就会一直保持,久而久之就会积累大量不活跃的连接。这是正常行为,也未必会造成性能问题;如果主动设置超时的话反而会影响长连接。

也有可能是连接太多,消耗了太多内核内存(?) 每个连接最多会用到64k内核内存,不过同时转发1k连接也就用掉64m,转发完就释放掉了

谢谢老哥分析 我再捣鼓测试下

from realm.

zephyrchien avatar zephyrchien commented on July 28, 2024

5f2b093 50a92f5

from realm.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.