[
https://issues.apache.org/jira/browse/CXF-8946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17813789#comment-17813789
]
John Yin commented on CXF-8946:
-------------------------------
I am getting OutOfMemoryException with CXF 3.6.2 and OpenJ9 (IBM Semeru
ibm-semeru-open-jre_x64_windows_17.0.9_9_openj9-0.41.0). In the dump, there
are two thousands of threads "HttpClient-xxxx-SelectorManager". Not sure
whether it is related to this issue or
https://issues.apache.org/jira/browse/CXF-8885. I do not see this issue if
using Hotspot JVM. If it is not related to this issue, I will open a new one.
Thanks!
> HttpClient in CXF causing memory leak
> -------------------------------------
>
> Key: CXF-8946
> URL: https://issues.apache.org/jira/browse/CXF-8946
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 4.0.3
> Reporter: Sebastian Violet
> Assignee: Daniel Kulp
> Priority: Major
> Fix For: 3.6.3, 4.0.4
>
> Attachments: CXF-HTTPClient-MemoryLeak.zip, Screenshot 2023-10-19 at
> 2.29.56 PM.png, call_mem_leak.sh, java_pid17394.hprof.zip,
> java_pid17394_Leak_Suspects.zip, java_pid91652.0001.hprof.zip,
> java_pid91652.0001_Leak_Suspects.zip, memory-leak-demo.zip, screenshot-1.png,
> screenshot-2.png
>
>
> When processing requests using the JAX RS client which used the new
> HttpClient, there is a memory leak.
> We found this when running it in spring boot using
> {code:java}
> @Async{code}
>
> I have tried to reproduce it using the attached code, and it seems to work
> with a low heap size.
>
> You can execute the code like so:
> {code:java}
> mvn compile exec:exec{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)