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:50:00 UTC
[jira] [Commented] (BVAL-183) Memory leak on ValueExtractors
[ https://issues.apache.org/jira/browse/BVAL-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200090#comment-17200090 ]
Jean-Louis Monteiro commented on BVAL-183:
------------------------------------------
PR available [https://github.com/apache/bval/pull/8]
Please can someone review and provide feedback?
> 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
> Priority: Major
> Attachments: leak1.png, leak2.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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).
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)