Solved

Leak? Java memory grows and then crashes Jserv

Posted on 2001-08-30
3
279 Views
Last Modified: 2010-03-04
9iAS 9.0.1 (no patch) on Solaris 8 (sparc).  JVM 1.2.2

I'm not getting an Out of memory error.

I tried setting the
wrapper.bin.parameters=-ms128m
wrapper.bin.parameters=-mx384m

course, this only works with Jserv mode set to auto (so it manages instances itself)

but when I do a while loop with pmap -x [pid]|grep total, I can watch the memory grow:

total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272
total Kb  207808   86000    4472   81528
total Kb   42056   23688    4416   19272

[I clicked here]

total Kb  207824   86016    4472   81544
total Kb   42056   23688    4416   19272
total Kb  207848   86040    4472   81568
total Kb   42056   23688    4416   19272
total Kb  207848   86040    4472   81568
total Kb   42056   23688    4416   19272
total Kb  207848   86040    4472   81568
total Kb   42056   23688    4416   19272
total Kb  207848   86040    4472   81568
total Kb   42056   23688    4416   19272

and this continues.  We are really, really sure our code doesn't have any memory leaks and we close db connections.  The point is, I can't keep memory at what I specify.  And eventually, Jserv respawns and we lose the session.  Bad.

If I set it to min=16 max=32 it starts at like 84meg of memory!

I've been searching and trying for 16 hours now.


I would try a patch for Java or 9i but this just started happening (no, I don't know what changed) and I can't find a patch.

My real question:  Is this normal?
0
Comment
Question by:milkfilk
3 Comments
 
LVL 3

Accepted Solution

by:
nigg earned 100 total points
ID: 6447212
It seams to me, that the JVM is running the GarbageCollector very late, so try to limit the the JVM's Memory use. Like that the GC runs more often, but also the sessions get lost, I guess. Otherwise try to put more memory to that machine....

Later..
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

20 Experts available now in Live!

Get 1:1 Help Now