• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Possible garbage collection issue

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to get an idea how many objects those caches are holding over time -- are they growing without bound?
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic