Security Management API server crashes under heavy load and must be restarted.
$FWDIR/log/api.elg before the crash shows:
DATE TIME,370 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.<init>:25
[qtp-828976840-28] - Cache created and initialized
DATE TIME,370 INFO com.checkpoint.management.web_api.web_services.WebApiEntryPoint.logRequestedCommandInfo:132
[qtp-828976840-28] - Executing [login] of version 1.1
DATE TIME,606 ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:195
[qtp-828976840-28] - Server has thrown GeneralRemoteFault exception errorCode
[CP_ERR_COULD_NOT_CONNECT_FWM] errorFamily [null] message [Unable to connect to server.
Please make sure that the server is up and running.]
DATE TIME,607 ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:219
[qtp-828976840-28] - com.checkpoint.web_services.faults.GeneralRemoteFault: Unable to connect to server.
Please make sure that the server is up and running.
Show Package Tool fails with:
[Expert@HostName]# $MDS_FWDIR/scripts/web_api_show_package.sh -k <PACKAGE NAME>
Exception in thread "main" com.checkpoint.mgmt_api.client.ApiClientRunTimeException: Error: failed to get string data
at com.checkpoint.mgmt_api.client.UtilClass.convertToJson(UtilClass.java:54)
at com.checkpoint.mgmt_api.client.ApiClient.apiCall(ApiClient.java:296)
at com.checkpoint.mgmt_api.client.ApiClient.apiCall(ApiClient.java:394)
at com.checkpoint.mgmt_api.client.ApiClient.exit(ApiClient.java:501)
at com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit(ShowPackageTool.java:1548)
at com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit(ShowPackageTool.java:1612)
Cause
The server is configured with maximum heap size (-Xmx) of 256 megabytes which may not be enough for a big number of heavy calls.