Closed victorlcampos closed 2 years ago
Thank you for your report. Because I'm not familiar with Sidekiq, I'd like some more information about this issue. First, if without Sidekiq, the memory leak also happened? For example, I imagine the script such as below:
require 'rjb'
...load POI
...manipulate the objects
...end of the manipulation
gets #stop for waiting 'hit return key'
# at this point, it consumes heavy memory?
If above script consumed many memory, it naturally caused by Rjb's miss handles of freed objects. Then, I wonder if you could copy and paste the script in this issue for my testing. However, if above script does not reproduce the issue, Rjb is not guilty.
BTW Some consideration is, your version of Rjb is the same ruby version in Sidekiq? I have heard about that some trouble was happened by below step.
Regards
Stale issue I dont remember if it's fixed
Hi,
First of all, thanks for this awsome gem, it's helping a lot here in my project. Second, sorry for my english, it's not my native language and i'm still improving it.
We are using POI (https://github.com/victorlcampos/poi_spreadsheet) to write to Excel with good performance and it's working amazing.
But when I'm using with a Sidekiq, the first time the workers process the file (1MM lines +-) it's consume 85% from my memory machine (ok). But this memory isn't free after perform the job. So, when it run again it shutdown the VM because no memory.
Could you help me understand why?
Here where ai Load POI (that load RJB https://github.com/victorlcampos/poi_spreadsheet/blob/master/lib/poi_spreadsheet.rb)
Here where I save the Excel workbook
Book Save Method where I think that should remove it from memory: