Skip to content

An URL Inputstream #131

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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