Skip to content

Help required: memory leak #4

@robbrockbank

Description

@robbrockbank

Hi. I tried this library out to do some transforms and seem to be hitting a large memory leak.

I'm running frequent transforms and memory seems to be increasing each transform in an unbounded way. I've tried reusing the same stylesheet and I've also tried closing it and reloading the stylesheet to perform each transform. In both cases I'm seeing memory climb without limit.

I've run pprof and nothing is showing up in the golang structs - so not leaking anything there. I also did a sanity check switching out this library and exec-ing xsltproc to do the transform instead (everything else remaining the same) and memory footprint remains constant.

Wondering if you had seen this, or had any thoughts as to where the leak may occur. I'm going to keep digging - but if you have any thoughts or pointers as to where/how to investigate then that would be greatly appreciated.

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