Skip to content

OutOfMemoryError produced by huge response, that must be excluded. #315

@stavskiy

Description

@stavskiy

Hello!
I catch java.lang.OutOfMemoryError: Java heap space when I download huge text file (70 Mb) and response body become very big. This request (and response correspondingly) was excluded in property file and doesn't appear in log.
JVM params are -Xmx256m -Xms128m
I tried to use logbook.write.chunk-size with values 10 and 10000 - it didn't work.
Here is the error log: https://pastebin.com/ESTUwqZW
How can I avoid this exception?

  • Version used: 1.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions