Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage. #37

Closed
hkhk366 opened this issue Nov 12, 2022 · 6 comments
Closed

High memory usage. #37

hkhk366 opened this issue Nov 12, 2022 · 6 comments
Labels
question Further information is requested

Comments

@hkhk366
Copy link

hkhk366 commented Nov 12, 2022

I run the following command.
./edgevpn --token xxx --address 10.1.0.1/24

After one day, it will cost 1GB of memory. And the memory is keep going up. Is this normal? Thank you.

@mudler
Copy link
Owner

mudler commented Nov 12, 2022

Hi @hkhk366 , thanks for filing up an issue!

Can you tell which version of edgevpn are you trying? also, try to fiddle with memory limits in the options - the resource manager has recently been added in libp2p and still tracking down potential memory usage spikes. However, with 0.18 memory consumption is pretty good here.

@mudler mudler added the question Further information is requested label Nov 12, 2022
@hkhk366
Copy link
Author

hkhk366 commented Nov 13, 2022

@mudler Hello, thanks for your message. I use 0.18 and download them here https://github.com/mudler/edgevpn/releases/tag/v0.18.0

Both windows 10 and ubuntu 20.04 cost much memory. I don't know why. Wouild you like to check it?

@hkhk366
Copy link
Author

hkhk366 commented Nov 13, 2022

@mudler FYI.

I run it again today. This time, I run it for 20 mins. The memory used 240MB. And it is keep going up. I checked peers' information. The peers' number is keep increasing and never going down.

Another thing is, even two nodes in the same local network. When I send a file via smb, the speed is only 500KB to 1MB per second. Clients are windows 10. The speed is very slow, do you know why? Thank you.

image

image

@mudler
Copy link
Owner

mudler commented Nov 17, 2022

I'm sorry i can't really help much on windows since I'm not a windows user at all - and takes away from me too much on my side to spawn up test environments with it.

However, did you tried to specify a lower limit for max connections? try set --max-connections 10 or something around that to see if the situation improves.

@hkhk366 hkhk366 closed this as completed Nov 19, 2022
@mudler
Copy link
Owner

mudler commented Nov 19, 2022

Did it help?

@hkhk366
Copy link
Author

hkhk366 commented Nov 20, 2022

Did it help?

Unfortunately no, I just switched to another tool that provides the p2p feature.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants