Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

initial/maxmum java heap size

 
david chan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have an application deployed to websphere 4.0.5 AE two nodes cluster on AIX. And it sometimes crash with this mesg:
JSPG0059E: Unable to compile class for JSP The compiler has run out of memory.
My system admin guy set the initial/Maximum Java heap size as 64MB, Is this setting cause problem?
What's the best size?
If there is memory leak, How can I found out?
Thanks.
David
 
Taro Yamada
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
First,please see below
http://www-1.ibm.com/support/docview.wss?uid=swg21066851

Next, suitable heap size is decided by the amount of a memory.
It is written to the site of IBM of Japan as follows.
in case of RAM < 1GB xMx=128MB,xMs=64MB
in case of 1GB <= RAM < 2GB xMx=256MB,xMS=128MB
in case of 2GB <= RAM xMx=512MB,xMs=256MB
Taro
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!