Solved

Leak? Java memory grows and then crashes Jserv

Posted on 2001-08-30
3
285 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
[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
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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
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 …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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