Solved

Leak? Java memory grows and then crashes Jserv

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need assistance modifying php script 3 55
Running Guacamole on port 80 5 253
PHP Error Settings 12 84
Increase number of concurrent connections in Apache tomcat 6 2 99
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 …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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