Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Heap Memory Problems

 
chicha sonu
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using JBoss 7.1
When i start the server the heap memory in the console shows 43%
But at the end of the day it goes upto 99% and the server becomes unresponsive.
I have changed the heap memory to 748MB
Please suggest to Overcome from this problem

Thanks in advance
 
Greg Charles
Sheriff
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The heap is where new objects are stored. They are kept there until all references to them are gone and the garbage collector runs. That means the problem is you are creating too many objects and/or not releasing the references to them. It could be as simple as making sure user sessions time out after a reasonable span of inactivity. However, most likely, you will need to run a profiler to find out exactly what's filling up your heap.
 
chicha sonu
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Greg for the reply.
Can you please suggest how to run a profiler so that i can find out whats the probelm behind this heap memory problem..
 
Greg Charles
Sheriff
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a good place to start: http://www.jboss.org/jbossprofiler
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic