Memory leak in XDocReport version 2.0.1
This is one of my interesting tasks that I have been assigned in my company. When I arrived my workplace about 2 weeks. My leader gave me a task which would fix the issue existed since 3 years.(I dont knew this :-) then I think it is a simple issue and very excited with this task) All I know about this issues is that it is a restful webservice built by Java and running in Tomcat. It always stops working after running 3 4 working days. And Catalia logs throw "Out of heap memory". So I wondered that what caused this exciting issues. I thought that if I fix it completely then I will got an unforgettable memory in my life. The first step: Get all source code and run it in my localhost to see what happened The is no thing happened. :-( . Then I watch the source code carefully and I saw a synchonized block code in a service. I thought that it can caused this issue when so many Request call this service at the same time. Then I use Jmetter to call about 500 request in a p...