KB Article #182055
cannot allocate memory when deploying a container in command line
Problem
-- deploying a container using mapProxyDeployer
-- getting such error in the cn.log :
2022-02-02 12:08:27,910 - ERROR [errorClient-32] (BasicImportLogger) - Failure detected during transaction. Error during : << reason = Error during pre commit action on Mapping Server>>_Exception source message = '803'_
-- getting this memory error in agent.log
Stage 2: creating machine code
Compiling intermediate code...
SpawnProcess: unable to fork
dmlc: unable to fork new process (Cannot allocate memory)
Failure (child status); process aborted !
Resolution
* open the mapProxyDeployer script located in Interchange/tools and set the Xms / Xmx in the java command
Ex :
$JAVA_HOME/bin/java -Xms1024m -Xmx1024m \
${TOOLS_PARAMS} \
-Daxway.cluster.node.name=mapProxyDeployer \
com.axway.clusterold.startup.Boot \ com.axway.b2bi.mapproxy.deployment.MapProxyCommandLineDeployer $*