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

Default Unix pool size (1000) is insane and dangerous #974

Open
apsheronets opened this issue Jan 7, 2023 · 0 comments
Open

Default Unix pool size (1000) is insane and dangerous #974

apsheronets opened this issue Jan 7, 2023 · 0 comments

Comments

@apsheronets
Copy link

I mean this one:

static int pool_size = 1000;

Few years ago I made a simple image caching proxy server using cohttp (and lwt). The server was pretty loaded, and worked on an array of pretty slow (rotational) HDD's. This caused an unexpected problem: a proxy server process ate all of the available RAM (like 32GB) in a couple of days.

The fix was: let () = Lwt_unix.set_pool_size 30

I see nobody touched the default number in a decade. How about lowering it down like 20 times?

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