Skip to content

Memory problem on ConcurrentHClientPool using HThriftClient with TFramedTransport #665

@flefilla

Description

@flefilla

In version 1.1-4, when ConcurrentHClientPool release HClient, if it is opened, it is pooled in availableClientQueue.

If we are in case of HThrifClient with TTransport wrapped with TFramedTransport, TMemoryInputTransport readBuffer_ keeps datas of operations done by HClient.

These given datas multiplied by connection's number can increase quickly the memory.

Why doesn't clear readBuffer_ on HClient release ?

I have 1 additional question,
Why max active connection is divided by 3 to obtain HClient number by host ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions