[
https://issues.apache.org/jira/browse/BVAL-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Louis Monteiro updated BVAL-183:
-------------------------------------
Description:
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).
was:
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!
> 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
>
>
> 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)