Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 83
printf performancy 11 104
Selenium docs api java index 3 98
Java - accessing a parent class member when another class inherits from the parent class 9 57
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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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

738 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