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

Add Memory Limit #4

Open
catdevman opened this issue Nov 10, 2024 · 0 comments
Open

Add Memory Limit #4

catdevman opened this issue Nov 10, 2024 · 0 comments

Comments

@catdevman
Copy link

catdevman commented Nov 10, 2024

See what happens when imposing memory limits. Perhaps a 6MB soft limit, using GOMEMLIMIT and --max-old-space-size and a 10MB hard limit on the docker container. This might put some of what Go is doing under the hood in perspective. If you do this you'll notice that you only lose slight performance with Go but Node will hardly get through a few thousand requests before OOM. Point of this is you can set any arbitrary limit you want on things to hamstring the performance of any application.

This sort of testing is really dangerous because new developers that don't know how to look at the whole situation believe these types of tests and then I have to set them straight at work, which is how I found you... Nobody is purposely hamstringing themselves like this in production so what does this prove... It proves that if you put random limitations on different programming languages you get skewed results. That isn't a big surprise I hope to anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant