Is there any code that cleans up the entries in the BYTE_ARRAY_POOL
?
So far it seems that those buffers are being kept due to references to thread objects, even if those threads have long ended - the garbage collector can not free those objects by itself and any new thread just adds more byte arrays.