413 errors: Request entity is larger than limits defined by server error using REST in CA Performance Management (CAPM)
search cancel

413 errors: Request entity is larger than limits defined by server error using REST in CA Performance Management (CAPM)

book

Article ID: 95411

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Trying to delete multiple devices from CAPM using the REST API but system is responding with Error:

413 errors: Request entity is larger than limits defined by server

How can the server be configured to allow the reset command: http://<DA_HOST>:8581/rest/devices to complete.

Environment

DX NetOps CAPM all releases

Resolution

The limit can be increased by using the following procedure.

  1. Create a file named com.ca.im.item.ws.impl.AutomaticWebServiceManagerImpl.cfg in the DA's <DA_INSTALL_HOME>/apache-karaf-<VERSION>/etc/ directory.

  2. Add the following line to that file: 

    maxReturnItemCount=500001

  3. The exact number that you put in should mimic the approximate count seen in the DA <DA_INSTALL_HOME>/apache-karaf-<VERSION>/data/log/karaf.log, with the caveat that setting this to a high number can result in OutOfMemory errors such as:

    java.lang.OutOfMemoryError: Java heap space
    D
    umping heap to java_pid1784.hprof ...
    H
    eap dump file created [4042764155 bytes in 38.328 secs]

Additional Information

Note: a restart is not needed after applying this KB