ServiceNow Connector > Troubleshooting > Increasing Secure Agent memory
  

Increasing Secure Agent memory

"[ERROR] May 21, 2014 1:53:40 PM org.apache.commons.httpclient. HttpMethodBase getResponseBody WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended." occurs when you run a synchronization task.
Solution: To resolve out of memory issues, configure the JVM options in the Secure Agent to increase the memory for the Java heap size.
Perform the following tasks:
    1In Administrator, select Runtime Environments.
    2Select the Secure Agent for which you want to increase memory from the list of available Secure Agents.
    3In the upper-right corner, click Edit.
    4In the System Configuration Details section, select the Type as DTM for the Data Integration Server.
    5Edit JVMOption1 as '-Xmx512'.
    The following image shows the Details page:
    You can view the configured JVMOption1 options.
    6In the System Configuration Details section, select the Type as Tomcat JRE.
    7Edit INFA_MEMORY as -Xms256m -Xmx512m.
    The following image shows the Agent Details page:
    You can view the configured Tomcat JRE options.
    Note: The minimum and maximum values for the Java heap size are given as an example. Specify the size according to your requirements.
    8Restart the Secure Agent and run the task.