VxRack Flex: FOSGWTool.sh fails with error='Cannot allocate memory'

           

   Article Number:     530339                                   Article Version: 2     Article Type:    Break Fix 
   

 


Product:

 

VxRack Flex Series,VxFlex OS 2.6,VxFlex OS 2.6.1,VxRack Node

 

Issue:

 

 

Running FOSGWTool.sh with any option fails with error='Cannot allocate memory'   
        

ScaleIO-XX-XX-XX-XX-GW:/opt/emc/scaleio/gateway/bin # ./FOSGWTool.sh --check_esrs_connectivity --scaleio_gateway_ip localhost --scaleio_gateway_user admin --scaleio_gateway_password XXXXXXJava HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f2100000, 25165824, 0) failed; error='Cannot allocate memory' (errno=12)## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (mmap) failed to map 25165824 bytes for committing reserved memory.# An error report file with more information is saved as:# /opt/emc/scaleio/gateway/bin/hs_err_pid11503.log    
   
                                                                

 

 

Cause:

 

 

Not enough free memory to be allocated for JVM                                                           

 

 

Resolution:

 

 

   

         
  •         Make sure correct Java version installed as per VxRack Upgrade guide     
  •    
   
cd /usr/java/latest/binjava -version    
   
         
  •         Check VxFlex GW VM assigned memory size.  VxRackFlex Upgrade guide states GW must have at least 4GiB memory assigned     
  •    
   
cat /proc/meminfo