• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

garbage collection too frequently or too long

 
Sam Sun
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks.
[ April 10, 2006: Message edited by: Yefeng Sun ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34870
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yefeng,
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic