arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

Memory leak #77

Open albandum opened 3 years ago

albandum commented 3 years ago

Hi and thanks for RJB, it's a beautiful tool :)

I'm using it in a similar fashion than this issue states : https://github.com/arton/rjb/issues/65 I've tried with and without sidekiq, both run memory leaks for me.

You can find here a video of the memory leak happening within a docker container : whenever the script ends the memory isn't freed, and if I run it again, the memory usage keeps going up indefinitely.

The script is also attached on the link. Any idea what I could add to the script to free up the memory ?

Thanks a lot

juanb23 commented 3 weeks ago

Are there any updates on this issue? I am using Aspose Cells via the Ruby Java Bridge in a Rails application. Loading from a template freezes and the memory used by the Aspose cells code never frees the memory used.

arton commented 3 weeks ago

It seems that Docker kept the most used memory in the container process. When the script finished running, Linux frees all memory of Ruby-RJB-JVM = the process used. However it was effected in the conatiner process, not in hosted environment (Docker process itself).