You can try this one: http://www.ocsystems.com/r
or this: http://www.codeproject.com
or this: http://performance.netbean
Good reading material:
http://www-106.ibm.com/dev
http://publib.boulder.ibm.
Main Topics
Browse All TopicsHi Experts,
I have a huge webapplication which sits on WLS. It relies on xml objects, webservices, ejbs etc (core J2EE). Now, when I run the application for few days, the heap slowly grows and throws OutOfMemory exception.
I tried using OptimizeIt 6.0 and figured out a couple of memory leaks. They are fixed. But still I find some growth in the heap. Is there any better tool used by you guyz for figuring out such problems?...I tried JProbe and YourKit as well. They don't seem to detect slow memory leaks.
I understand the pain in detecting slow memory leaks. Because one has to wait all the time to just reproduce it. Are there any suggestions from you folks?..Any pointers would be of great help.
-Rajesh
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can try this one: http://www.ocsystems.com/r
or this: http://www.codeproject.com
or this: http://performance.netbean
Good reading material:
http://www-106.ibm.com/dev
http://publib.boulder.ibm.
Hi Dave,
I have been programming for the past 5-7 years...:)..yeah..To fix the earlier memory leaks, I had to look at the code..:)..But if there are 2000-5000 classes along with some other classes like xml parsers etc, you really can't rely on code reading. Thatz why I rely on tools to nail down to the methods and classes and then start looking at those specific classes.
I have quite a bit of experience in finding memory leaks in my earlier projects. But since this is a very slow memory leak, it becomes difficult. So just wanted to know if the experts here have encountered similar problems or not.
-Rajesh
>> Unfortunately the first link is not meant for Java.
" trace to resolve memory problems in C/C++ applications and object growth in Java."
Did you read their fact sheets? http://www.ocsystems.com/p
>> It may be that you forget to close your connection to DB,
Though programatically it is very important to close any resources in a finally block in that case
most application server will detect when a connection is not returned to the pool at the end of the transaction and will give some warning.
In order to expedite the debugging process you can try to decrease the memory size and increase the load.
http://www.codeproject.com
Sorry about that..I meant this..First one, I have already tried.
-Rajesh.B
You can use http://jakarta.apache.org/
------ http://jakarta.apache.org/
------ http://jakarta.apache.org/
to automate some load.
Hi Rajesh,
Have u used JRockit Memory Leak Detector provided in WLS. Have a look at the following link:
http://e-docs.bea.com/wljr
Also note that if the deployed beans idle time out descriptor has been specified or not in the deployement descriptor.
-cmalakar
Hi cmalakar,
That was a good thought. I had used JRA also. In JDK 1.4.2 version of it, it had "MemoryLeak Detector" which you can view using Management console. In JDK 1.5, they expose those using MBeans and the management console is different. You would be able to view the obejcts etc, but not the memoryleak detector kinda thing.
To add to the complexity of the problem, I am using JDK 1.5 classes..:(..But tried doing JRA as well.
- Rajesh.B
Hi CEHJ,
I didn't mean anything wrong..I joinned this group on 2000 and at that time, HeyHey was of great help. Not sure whether he is busy these days or not..:)..Your posts are very interesting too..Its been a while since I entered this great forum now. Can you please give your thoughts on this problem also?..It would be of great help.
-Rajesh.B
Business Accounts
Answer for Membership
by: suprapto45Posted on 2005-04-22 at 20:11:55ID: 13848027
Hi Rajesh,
If I were you, I will not use any tools but I will try to look over at the codes and try to check where the heaps are growing. It may be that you forget to close your connection to DB, or you have some Collections that are containing large data but you have not set them into null.
Maybe, you try to look in which module the heap is growing extensively. Then, you need to do something on that modules. I know that it is very painful to do so but I just have no other solution. I do not know any tools that can help you but I think that to solve it, you need to fix the Java codes itself.
Regards
Dave