Project

General

Profile

Actions

Bug #16513

closed

JVM GC cannot clean objects in scope in a for { } yield {} even if they are not referenced anymore

Added by Nicolas CHARLES almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

GC cannot garbage collect objects in a for yield, as long as they are in scope

We need to help it by putting them out of scope, or not referencing them anymore, or by returning smaller objects

see https://github.com/Normation/rudder/pull/2648/commits/e916e3ebe2c5d5b8299f2b0953b9739ebbe08f42 - it saves a full GB of memory during policy generation


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #15675: Leak in Cache of Node Compliance and NodeInfo and perfs improvementReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF