Skip to content

HUGE off-heap memory leak and heap memory leak when using quick-js #61

Open

Description

@sandtechnology

Not sure if the issue from quick-js or your side, but I post them to remind other server owner when troubleshooting.

Heap memory leak by mat report:

image
image

Merged path2gc shows it was referred by JNI Gobal ref:

image

Also off-heap having LARGE leak about 50GB+, jmap shows there are lots of JNI refs

image
image
image

Activity

  1. sandtechnology commented on Feb 17, 2022

    @sandtechnology
    Author

    And seems is the bug from quack which introduced by Javascript-Expansion 2.x, so I will try to use 1.x to see if it fixed it.

  2. changed the title [-]HUGE off-heap memory leak and heap memory leak when using quick-js[/-] [+]HUGE off-heap memory leak and heap memory leak when using 2.x version[/+] on Feb 17, 2022
  3. changed the title [-]HUGE off-heap memory leak and heap memory leak when using 2.x version[/-] [+]HUGE off-heap memory leak and heap memory leak when using quick-js[/+] on Feb 17, 2022
  4. partydev commented on Jun 3, 2022

    @partydev

    Confirmed this with our testing. We were leaking 650mb/s at one point. Removing QuickJS solved it. We never had a heap memory leak, only native.

  5. darbyjack commented on Jun 3, 2022

    @darbyjack
    Member

    @sandtechnology I don't know a whole lot of c++ but I saw there is a fork of quack that seems better maintained. If you understand it, can you check this fork to see if it looks like it fixes the problem? https://github.com/uk-taniyama/quack

  6. darbyjack commented on Jun 3, 2022

    @darbyjack
    Member

    I just implemented another possible engine to use called RhinoJS. I'm not entirely sure what all it offers but I tested basic script evaluations which seemed to work fine. I have a copy of the jar in this open PR #65

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions