Solved

Leak? Java memory grows and then crashes Jserv

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

13 Experts available now in Live!

Get 1:1 Help Now