Solved

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

Posted on 2003-10-22
5
1,928 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now