• 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

OutOfMemoryError below max heap

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have an application that periodically gets OutOfMemoryErrors when under heavy volume. The application has a max heap setting of 512mb but will experience OutOfMemoryErrors when the free memory/allocated memory is 256mb. Most times the application will then be granted more memory, but sometimes it just hangs.
Is anyone familiar with WebSphere's process for allocating memory to application instances? If the max heap size is set to 512mb, is that reserved for the application? I have also heard people mention "paging" when discussing garbage collection and memory, how does this process work? Thanks for any help....
Travis
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you check whts the mem utilization on the box when websphere hangs??
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Travis Kline:
The application has a max heap setting of 512mb but will experience OutOfMemoryErrors when the free memory/allocated memory is 256mb.


Travis,
What's the init heap size? Is it also 512mb? If so, change it to 128mb. It seems to me that the heap was fragmented by some "unmovable" objects allocated to the 512mb.
Tony
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic