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

Connection error when sampling many URLs #20

Open
eyala01 opened this issue Apr 18, 2017 · 5 comments
Open

Connection error when sampling many URLs #20

eyala01 opened this issue Apr 18, 2017 · 5 comments

Comments

@eyala01
Copy link

eyala01 commented Apr 18, 2017

Hi,

We're using httpbeat to sample every minute (cron: "@every 1m") multiple URLs from http://127.0.0.1:8443 on a Windows 2012 R2 machine.
It works great for a list of a few URLs, but when we increase the list to around 30 URLs or more, we sometimes get this error in the LOG file:

<date_and_time> ERR An error occurred while executing HTTP request: [dial tcp 127.0.0.1:8443: connectex: No connection could be made because the target machine actively refused it. Get http://127.0.0.1:8443/<rest_of_URL>: dial tcp 127.0.0.1:8443: connectex: No connection could be made because the target machine actively refused it.]

It isn't a problem on the web server side, because the same sample of URLs with the same frequency works just fine using a different sampling tool.

Is there a limit to the number of URLs we can sample with one instance of httpbeat, or did we find a performance problem?

Please advise,
Eyal

@christiangalsterer
Copy link
Owner

In general there aren't any limitations on the number of connections. The error message indicates that the server refuses additional connections, although you mention that a different tool doesn't show this issues. Maybe there is a difference in connection reuse.

I don't have a Window machine available for testing but will try to reproduce the issue with Linux.
Q: Which version of httpbeat do you use?

@eyala01
Copy link
Author

eyala01 commented Apr 19, 2017

Thanks for the quick reply.
We're using httpbeat 3.2.0.

@eyala01
Copy link
Author

eyala01 commented Apr 19, 2017

Quick update: We upgraded our httpbeat to the latest version (4.0.0), and the problem persists.

@christiangalsterer
Copy link
Owner

christiangalsterer commented May 7, 2017

I just tried it with 100 connections and it runs without problems.
As the error message "No connection could be made because the target machine actively refused it.]" indicated there seems to be a setting on the server side which prevents further connections after a threshold. Can you check your server again?

@christiangalsterer
Copy link
Owner

Did you had a change to check it again?

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

No branches or pull requests

2 participants