Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Huge byte[] allocations in Large Object Heap after big load #2673

Closed
@kabazakra

Description

@kabazakra

Hi

I am playing with performance tests for my app. It uses AspNet.Core + Kestrel ver. 1.1.2. Response size is pretty big, in average about 2MB, so app takes a lot of memory during testing. But what is strange, it doesn't free memory even if testing is completed. Profiler shows a big amount of byte arrays referenced by MemoryChunk and MemoryPool.
Is there a way to reduce pool size if the app in the standby state? Maybe some configs exist? What is the common strategy for Kestrel in this case? Should it keep allocated bytes forever?
Also, app throws OutOfMemory from time to time, is there some kind of limit for pool size, I would prefer to drop connection rather than lost my app at all on huge load,

Thank you in advance.
Ihor

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