• Post Reply Bookmark Topic Watch Topic
  • New Topic

Possible garbage collection issue

 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I have a server which has 4 processors and 4GB of memory. There are quite a few people hitting this server and lots of transactions taking place. I have noticed a significant slow down where 1.5 GB of memory is consumed and response time is slow. My question is could this be an issue of garbage collection not being able to keep up with transactions and object creation that is taking place?

- Steve
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a word: yes. Well, not so much that GC "can't keep up", but simply that GC overhead becomes apparent once max memory is consumed and the only free memory comes from reclamation.

I'd be concerned, though, that there's an issue with excess memory consumption -- probably a leak. Is it possible that there are objects being retained past their useful lives? Are there static variables of any kind? And kind of static caches? Threads being created for each client?
 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there are numerious static variables in the framework that is used. I think the number of threads is fairly low but I am not exactly sure about that. It is a request and response framework where each request and response has its own cache, which is hashmaps containing data and other hashmaps.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to get an idea how many objects those caches are holding over time -- are they growing without bound?
 
Lucas Lee
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to describe your application environment in detail.
For example,what are the application server and database server.
For java application,there are some parameters to control memory usage.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!