-
Notifications
You must be signed in to change notification settings - Fork 817
Description
Hey,
like mentioned in #415 windows consumes a huge lot of memory for a simple echo server with lots (5-10k) connections (sending and receiving data).
On this simple project creating around 10k connections consumes ~700mb of ram, on a linux machine it takes around 7mb. After all connections are closed the memory is freed again.
To reproduce:
- Clone the repo
- open a shell and execute cargo run
- open a shell and execute node test.js
Setup:
- Windows 10
- Node 6.2.2
- Rust 1.8.0
- mio 0.5.1
This will spin up 10k connections to localhost:8888 (the waiting rust echo server).
I'm experiencing this on a windows 10 laptop, simply observed with the taskmanager. As linux reference I've used a private rootserver and a cloud9 machine, none of them showed this behaviour.
As soon as I've got some time I'll update my compiler and try to create some simpler code to reproduce, but currently my time is somehow limited.
If any questions left, just ask :)
Cheers