Unable to start the Sharepoint agent services.
After installation and Registering the sharepoint agent, not able to start the sharepoint agent services.
Agent startup is failing with below error.[ERROR] Agent for virtual host: default did not initialized properly.
Sharepoint agent: 12.52
OS: Windows
System was unable to reserve the continuous memory for JVM.
Sometimes, reducing the JVM heap memory helps as the system may not be able to allocate the continuous memory allocation for JVM.
Steps:
1. Go to $SPS_HOME\secure-proxy\proxy-engine\conf
2. Edit SmSpsProxyEngine config file.
3. Find the section below,
// *****************************************************************************
// Section 2: JVM Startup Options (Windows platforms only)
// *****************************************************************************
NETE_SPS_PROXYENGINE_CMD="%NETE_SPS_JAVA_HOME%\bin\java.exe" -Xms512m -Xmx1024m -XX:MaxMetaspaceSize=256M -
4. Reduce the JAVA heap size as,
Xms256m -Xmx512m -XX:MaxMetaspaceSize=128M
5. Restart the agent