Skip to content

Error when running ab #14

Open
Open

Description

@sheldonip

In Saturation, Instruments to Measure Golden Signals of the hands-on lab 8, when running the following command to apply the load:
ab -n 50000 -c 100 http:‌//localhost:5000/users

This leads to an error:
apr_socket_connect(): Invalid argument (22)

I am on OSX, and it seems the host name is resolved as a local IPv6 address.

This error can be avoided by:
ab -n 50000 -c 100 http://127.0.0.1:5000/users

Reference: https://serverfault.com/questions/236623/receiving-error-apr-socket-connect-invalid-argument-22-when-running-apache

Activity

  1. maeddes commented on Jan 12, 2026

    @maeddes
    Contributor

    Did you also run the lab within a devcontainer? If you use your local architecture, errors like these may occur.

    The devcontainer ensures consistent behaviour and usage of the right versions. We've tested this on ARM/Intel and various OS.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions