Skip to content

Excessive calls to '/events' api if docker daemon is not fully initialized #269

@aj-jaswanth

Description

@aj-jaswanth

We have observed that dockergen calls '/events' huge number of times when the docker daemon is not fully initialized. As a result of this docker 1.9.1 consumes a lot of memory more than 4GB (when it should only be consuming 40MB).

Sample logs:

Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.527161876+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.527770917+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.529030241+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.529666130+11:00" level=info msg="GET /events"

Number of times called per second:
Table shows columns timestamp and number of times '/events' called'.

22:17:56   571
22:17:57   1072
22:17:58   571
22:18:10   813
22:18:11    880
22:18:12    534
22:18:40   587
22:18:41    711
22:18:42    938
22:19:12   200
22:19:13   1586
22:19:14   463

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions