I've a stand alone application which makes use of VMware's Java Webservice API, this is a wrapper around the webservice client. I'm using a fixed thread pool of size 5 to invoke the APIs in library. After running for a while (a day or two), the memory usage creeps up and the heap dump shows that thread locals of the pooled threads has accumulated lots of memory.
Is there anyway to clear those thread locals? Since the webservice call is actually invoked from a third party library, I'm not able to clear the thread locals directly.