A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
garbage collection too frequently or too long
Joined: Feb 01, 2005
Apr 10, 2006 08:51:00
Lets say that the garbage collection of the application is running too frequently or is running for too long.
What would be some typical first steps in identifying the problem and what are some typical solutions for this situation?
[ April 10, 2006: Message edited by: Yefeng Sun ]
author & internet detective
Joined: May 26, 2003
Apr 10, 2006 18:48:00
You would find out that the garbage collection is a problem by running a profiler.
There are many command line options you can use to tune gc. For example, you can set the maximum heap size and the gc algorithm (in
OCA 8 book
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: garbage collection too frequently or too long
Using Soft references for cache
Help on improving Performance
Garbage Collection suggestions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015