Skip to content

Native memory leak observed when using db-scheduler #723

@alexruf

Description

@alexruf

Description:
We are using db-scheduler in a Spring Boot application (Java/Kotlin, Gradle). We have observed that the JVM's native memory (non-heap memory) consumption increases steadily over time and is never released, even after scheduled tasks complete. This behavior suggests a possible native memory leak in the library.

Steps to Reproduce:

  1. Integrate db-scheduler as per documentation.
  2. Start the application and schedule recurring tasks.
  3. Monitor JVM native memory usage (e.g., using ps, top, or a profiler).
  4. Observe that native memory usage keeps increasing and is not reclaimed.

Expected Behavior:
Native memory usage should remain stable or fluctuate within reasonable bounds, not increase indefinitely.

Actual Behavior:
Native memory usage grows continuously, indicating a potential leak.

Environment:

  • db-scheduler version: 16.0.0
  • JVM: 21.0.8+9.0.LTS
  • Spring Boot: 3.5.3
  • Database: Postgres 16

Additional Information:

  • No relevant heap memory leak detected.
  • Issue persists across restarts and with minimal configuration.

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