A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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 ]
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 Java 1.4).
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
Help on improving Performance
Using Soft references for cache
Garbage Collection suggestions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014