Solved

Weblogic, Java and the Garbage Collector. . . Memory Leak?

Posted on 2003-10-22
5
1,933 Views
Last Modified: 2013-12-22
We are using weblogic server(6.1) and jdk 1.3.1 for our web application. Java Garbage Collector is not cleaning unused memory even the memory usage is more than 90%. We need to do "force to garbage collection" for every day. The memory usage goes down most of the time once a "force to garbage collection" is done. We believe it to be a memory leak, but can not find the error in the code.  I saw that someone else had posted a similiar question, so I know that we are not alone with this issue.  Any suggestions in where to look or how to stop the issue would be greatly appreciated!

Note : outofmemoryexception error is received in the application if we don't do the "force to garbage collection".

0
Comment
Question by:lhunt16
5 Comments
 

Accepted Solution

by:
chimichael earned 250 total points
ID: 9602949
We use Jboss v3.2.2 and jdk1.4.1_02 for our application.  The OutOfMemoryException was a familiar problem we had and may be related to yours.  For our situation, we found that memory leaks were coming from not properly closing Connection objects, PreparedStatements, and ResultSets.  
0
 
LVL 3

Assisted Solution

by:mvoelker
mvoelker earned 250 total points
ID: 9613115
We had a similar problem with the 6.1 release in the past. BEA support recommended to increase the heap size in the JVM - you'll need to modify the batch/script files to accomplish that. This solved the outofmemory exception problem for us. If it was a memory leak, it would only have increased the intervals between the execeptions, but for us they've completely gone away.

The high memory usage of 90% is not necessarily a result of a memory leak, since weblogic likes to cache a lot for future use.

Regards,

 - michael
0
 
LVL 92

Expert Comment

by:objects
ID: 10194213
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between chimichael and mvoelker

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

objects
EE Cleanup Volunteer
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question