Memory leak in Lasso when dumping object
Concerned version
Version: 2.0.9
Platform: (Nginx/Apache/Node.js)
Summary
- Set up LLNG as a SAML Issuer with one SP
- Open a session, and benchmark a simple SAML login flow
- Watch memory rising steadily
Logs
The main culprit in this particular flow is this code
if ( $login->is_session_dirty ) {
$self->logger->debug("Save Lasso session in session");
$self->p->updateSession( $req,
{ $self->lsDump => $login->get_session->dump },
$session_id );
}
Especialy $login->get_session->dump
, it seems that Lasso will not release memory when the perl variable goes out of scope.
Possible fixes
Needs further investigation