Regnology / lucy

Lucy is a component analysis platform to minimize the risk of license infringements and to support and optimize the license compliance process.
MIT License
7 stars 1 forks source link

Upload Archive Memory bug #13

Open savu-a opened 1 year ago

savu-a commented 1 year ago

Describe the bug When doing an upload of an archive the RAM that is needed to analyse the archive doesn't get freed after the analysis has finished.

To Reproduce Steps to reproduce the behaviour:

  1. Go to '/product/[id]/view'
  2. Click on 'Upload'
  3. Choose File (Upload a BOM (CSV, XML) or archive file format (ZIP, TAR, WAR..))
  4. Click 'Upload'
  5. After the Upload process is finished the memory is not freed

Expected behaviour After the Upload process is finished the memory should be freed

Additional context The classes for processing an archive were mostly rewritten and optimized. The old implementation contained a few errors. The rewrite has partially improved the memory problems, but not completely.

Also, the problem was that previously several different uploads were mixed together, which is not allowed to happen under any circumstances. I have not tested this again until now to see if this is now fixed.

Uploads of archives should therefore still be treated with caution and after each upload, it is best to restart the container to free up memory.

The uploaded archive still takes up memory space after the upload has been processed. It's less than before but still not good enough.

A deeper analysis of the garbage collector needs to be done.