Following error is thrown on start up of BE application.Error occured during initialization of VM Incompatible initial and maximum heap sizes .How to resolve this?

Following error is thrown on start up of BE application.Error occured during initialization of VM Incompatible initial and maximum heap sizes .How to resolve this?

book

Article ID: KB0086349

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Please check for the "java.extended.properties" property in your be-engine.tra file, located at &ltTIBCO_HOME>/be/3.0/bin
    
     The property has the below value by default.
    
   java.extended.properties=-server -Xms1024m -Xmx1024m -javaagent:%BE_HOME%/lib/cep-instrumentation.jar -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC
                                     -XX:MaxGCPauseMillis=150 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCMSCompactAtFullCollection
                                     -XX:CMSFullGCsBeforeCompaction=2 -XX:+DisableExplicitGC -XX:+UseTLAB -XX:+UseSpinning -XX:+UseFastAccessorMethods
                                    
   In this -Xms1024m is the initial size of the Heap and -Xmx1024m is the maximum size of the heap.
  
The  maximum size of the heap has to be greater than  the initial heap size, for the BE Engine to start successfully, otherwise   this error "Error occurred during initialization of VM Incompatible initial and maximum heap sizes specified"  is thrown". The fix is to set the intial size lesser than the maximum heap size .for eg you can set the initial size as 512m and max size as 1024m.
  
  So Its  suggested that  you  check this property and change it accordingly to your configuration requirements.

Issue/Introduction

Following error is thrown on start up of BE application.Error occured during initialization of VM Incompatible initial and maximum heap sizes .How to resolve this?