]
Sanne Grinovero commented on ISPN-4459:
---------------------------------------
[~dan.berindei] why is this assigned to me? BTW I might have misunderstood the description
(I didn't look at the code) but the way you describe it it seems a critical leak of
the client, not so much a problem of tests only.
Memory leak in HotRod client tests
----------------------------------
Key: ISPN-4459
URL:
https://issues.jboss.org/browse/ISPN-4459
Project: Infinispan
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Remote Querying, Test Suite - Server
Affects Versions: 7.0.0.Alpha4
Reporter: Dan Berindei
Assignee: Sanne Grinovero
Labels: testsuite_stability
Fix For: 7.0.0.Final
Attachments: jprofiler_screenshot.png
Even though the HotRod client stop their servers, each test instance keeps the reference
to the servers it has started (both tests extending HotRodSingleNodeTest and those
extending HotRodMultiNodeTest).
In some tests, like the remote query tests, those servers' worker threads also keep
references to huge thread-local {{io.netty.buffer.PoolThreadCache}}s (see attachment).
Because of this, I'm sometimes seeing an OOM in the HotRod client suite. We should
either clear the server references in the tests, or clear the worker threads when shutting
down the server.