netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Memory problems version 1.7.17

Open arestory opened this issue 6 years ago • 2 comments

After the number of connections dropped, the memory remained too high to drop

arestory avatar May 17 '19 02:05 arestory

We found the same problem

DancingCorp avatar Nov 07 '19 10:11 DancingCorp

I'm sorry. My answer is another question #657

Configuration.setRandomSession(true); [email protected] From: DancingCorp Date: 2019-11-07 18:18 To: mrniko/netty-socketio CC: Subscribed Subject: Re: [mrniko/netty-socketio] Memory problems version 1.7.17 (#676) We found the same problem — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

It doesn't work.

    Configuration config = new Configuration();
    config.setPort(nettyConfig.getPort());
    config.setMaxFramePayloadLength(1024 * 1024);
    config.setMaxHttpContentLength(1024 * 1024);
    config.setTransports(Transport.WEBSOCKET);
    config.setOrigin(null);
    config.setPreferDirectBuffer(false);
    config.setRandomSession(true);
    config.setBossThreads(8);
    config.setWorkerThreads(400);

rss reach to 1.32G when startup, and up to 2.1G after all clients disconnection.

cjpw avatar Nov 08 '19 02:11 cjpw

Fixed in https://github.com/mrniko/netty-socketio/issues/868

mrniko avatar Apr 14 '23 09:04 mrniko