You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Jean-Louis Monteiro (Jira)" <ji...@apache.org> on 2020/09/22 13:44:00 UTC

[jira] [Created] (BVAL-183) Memory leak on ValueExtractors

Jean-Louis Monteiro created BVAL-183:
----------------------------------------

             Summary: Memory leak on ValueExtractors
                 Key: BVAL-183
                 URL: https://issues.apache.org/jira/browse/BVAL-183
             Project: BVal
          Issue Type: Bug
            Reporter: Jean-Louis Monteiro
         Attachments: leak1.png, leak2.png

When using Apache BVal on a JAX RS endpoint, even if there is nothing to validate, Apache CXF will call executableValidator to validate the parameters, the return value and so on.

 

When creating the validator from the factory, the value extractors will be created again and again, with the child creating memory leaks (see picture of a small REST endpoint without validation constraints - after a few minutes, memory is full of Lazy and ValueExtractors).

!image-2020-09-22-15-42-15-755.png!!image-2020-09-22-15-42-15-679.png!

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)