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

Problems after a big lot of requests #176

Open
wusikijeronii opened this issue Nov 8, 2021 · 0 comments
Open

Problems after a big lot of requests #176

wusikijeronii opened this issue Nov 8, 2021 · 0 comments

Comments

@wusikijeronii
Copy link

wusikijeronii commented Nov 8, 2021

Hello.
I have a problem with memory leaking in vibe-d and today I tried hunt-framework. Even after 100 requests per 1 sec, I have a few problems:

  1. Web resource is unavailable. I get a timeout error.
    In log a see error:

Failure on accept Unable to accept socket connection: Too many open files

logs.log
cURL response:

 curl localhost:8080 -v -m 10                                                                                                                                                                    
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.79.1
> Accept: */*
> 
* Operation timed out after 10001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 10001 milliseconds with 0 bytes received

P.S.: in OS (Manjaro Linux) I set ulimit to 5000 however the error appears.
2. Also memory leaking. In the screenshot below, I sent 1000 requests in 1 minute.
Снимок экрана от 2021-11-08 18-09-50
After I stop sending requests values of mem and res don't change.

How to reproduce:

git clone https://github.com/huntlabs/hunt-skeleton.git myproject
cd myproject
dub run -v
wrk -t8 -d10m -c2000 http://localhost:8080

wrk is a simple benchmark tool.

@wusikijeronii wusikijeronii changed the title Problem with a big lot of requests Problems after a big lot of requests Nov 8, 2021
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