Skip to content

Memory limit (total) exceeded issues with wait_end_of_query=1 #11153

@silviucpp

Description

@silviucpp

Using the version a2ed826 in case I run a QUERY like "SELECT 1" in loop using wait_end_of_query=1 after 7000 iterations all queries will fail with:

DynamicQueryHandler: Code: 241, e.displayText() = DB::Exception: Memory limit (total) exceeded: would use 14.40 GiB (attempt to allocate chunk of 4198133 bytes), maximum: 14.40 GiB, Stack trace (when copying this message, always include the lines below):

If wait_end_of_query is not specified the problem doesn't occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed user-visible misbehaviour in official releasecomp-protocolsServer wire protocols + request/response handling (native TCP, HTTP, MySQL/PostgreSQL wire protoc...memoryWhen memory usage is higher than expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions