Solved

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

Posted on 2003-10-22
5
1,947 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

624 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