Skip to content

An URL Inputstream #131

@v-gu

Description

@v-gu

Hi Xerial,

Recently I'm investigating a JVM memory leaky problem that related to a Spark application, and one of the trace points to the snappy library call which is listed blow:

https://github.com/xerial/snappy-java/blob/develop/src/main/java/org/xerial/snappy/Snappy.java#L292

Should this inputstream be closed after use? if the resource is in Jar then the input stream would be GzipInputStream and it will allocate off-heap memory.

Don't really sure if this was rated to my problem, but I'm just curious here. Thank you.

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