Skip to content

Significant rise of used RAM when we run the device for long time  #596

Open

Description

@shwetaCummins

Hello,

We are using jserialcomm library 2.9.3 in our application to serve Modbus. Our device is running 24x7. During long run we observed that there is significant rise of RAM memory (vmrss and kMalloc 512 and kMalloc256) is increasing approx 5MB per day.
Can you please help us to know the reason of memory leak.

Thank you in advance for your support.

Thank you,
Shweta

Activity

  1. changed the title [-]Significant rise of used RAM when we run the device for long time (many days)[/-] [+]Significant rise of used RAM when we run the device for long time [/+] on Apr 22, 2025
  2. RedShift1 commented on Jul 3, 2025

    @RedShift1

    What makes you suspect it's the jSerialComm library that's leaking memory and not your own application?

  3. hedgecrw commented on Oct 31, 2025

    @hedgecrw
    Contributor

    What OS are you using? And what library functions are you calling? A memory leak in native code is unlikely, as there are no memory allocations outside of serial port enumeration. A Java memory leak is possible, but also unlikely. Will need to see what you're calling to investigate further.

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