clj-python / clj-python/libpython-clj

Ways to reduce probability of memory leaks?

Open
#260 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
1.2k
Forks
74
PR merge metrics
No merged PRs in 30d

Description

We have a long-running process that uses libpython-clj as a bridge between Java and Python code.

We've noticed that we seem to be for some reason, leaking memory just a tiny bit. This is enough to cause issues when the processes are run for multiple weeks/months on end.

Is there some good practices to transfer data between the Python and Java sides with minimal probability of leaking? What would be the ways to figure out what is causing the leaks?

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing the memory growth in a long-running process that transfers data between the Java and Python sides, then use the project’s existing guidance or diagnostics to identify the leak and document a verified mitigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, java, python
Domain
backend, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.