I'm using rubyzip to unzip some files during a rake task, but Im finding that the memory used isn't available after unzipping the files. I have to reboot the server to reclaim the memory. Anyone else having similar issues? Any workarounds?
I'm unzipping with the same code as the example on github
https://github.com/rubyzip/rubyzip
Zip::File.open('foo.zip') do |zip_file|
# Handle entries one by one
zip_file.each do |entry|
# Extract to file/directory/symlink
puts "Extracting #{entry.name}"
entry.extract(dest_file)
end
end
Any suggestions would be greatly appreciated!