SWPM: Could not create or open file mapping

While performing the SAP installation using the SWPM tool, below error prompted,

VMCOs::init failed
VMCOs::init: Initialization of the control area failed
Controls::init: Could not create control area. Maybe old VMs are still running
os::create_control_area: Could not create or open file mapping (filename=Local\sap_jvm_file_pid_3300_ 0) (size=45760) (error=5)
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit

The possible causes due to this issues are,

  • SAPJVM issue
  • Permission issue
  • Problem with content of TMP/TEMP directories which contains the extracted files for SWPM execution like SAPJVM

Solution

The resolution is shared as in SAP Note 2934583 – “Could not create or open file mapping” during an installation using SWPM,

  • Check the location of SAP JVM in the path of used SAPJVM ($SAPINST_JRE_HOME)
    • The extracted files for the SAP JVM should reside and also the ‘libjava.so’ (e.g. on Unix/Linux OS) in it.
    • If not, please extract the SAPJVM-SAR archive manually and copy over the extracted files into it.
    • Afterwards, repeat the sapinst step. It should continue.
  • Ensure the user running sapinst has the authorizations assigned as described in the SWPM installation guides and SAP Note 2445952.
  • Ensure that the content of the $TMP/$TEMP directories are not deleted by any cron job or user and it’s on local path and not on any NFS mount point.

You May Also Like

Leave a Reply?