Skip to content

StandardMultipartHttpServletRequest.StandardMultipartFile#getBytes can not release Direct Memory #35006

Closed as not planned
@sxl-vay

Description

@sxl-vay

Verson:

JDK21

spring-boot-starter-web 3.5.0

When I upload file to springmvc applicaion, and use MultipartFile#getBytes. it will OOM,If the total size of the attachments I have uploaded exceeds the direct memory size.OOM occurs.

this is the recurrent demo project link https://github.com/sxl-vay/test-direct-memory.git

And I found out that the problem was caused by this commit 4e896c8

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions