Skip to content

Memory consumption when serving many range request from one large file #1536

@mixtur

Description

@mixtur

When esbuild is started in the serve mode it consumes around 40-50MB on my system.

But when I open a page in a browser and the page starts making many small range requests suddenly memory consumption jumps to around 6GB which is scarry.

The requested file is about 800Mb in size, and we are making 10 to 20 request on startup, each request has a Range header with a range usually less than 100kB in size.

esbuild version was 0.12.21
I was running it on Windows 10
Memory consumption was measured using Windows Task Manager

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