cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_NO_MEMORY" occurred

Former Member
0 Kudos

Hi All,

one of the backgroung job is getting cancelled with Run-time error "HTTP_NO_MEMORY". Below id the job log and system log. Can anyone help.

Job started

Step 001 started (program ZB_PL_PROPERTY_VCM_MAIN_NEW, variant , user ID BATCH_ID)

ABAP/4 processor: HTTP_NO_MEMORY

Job cancelled

========================================

Run-time error "HTTP_NO_MEMORY" occurred

Transaction Canceled 00 671 ( HTTP_NO_MEMORY )

Perform rollback

========================================

Regards,

Yusuf.

Accepted Solutions (0)

Answers (4)

Answers (4)

yashnath176
Explorer
0 Kudos

Use below code to close HTTP connection while calling REST API


** to resolve HTTP_NO_MEMORY dump HTTP session need to be close .

** write below code after getting api response.
lo_http_client->refresh_response(
EXCEPTIONS
http_action_failed = 1
OTHERS = 2
).
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

lo_http_client->close(
EXCEPTIONS
http_invalid_state = 1
OTHERS = 2
).
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Former Member
0 Kudos

Thanks Pradeep,

This has resolved my rpoblem.

Regards,

Yusuf

Former Member
0 Kudos

Hi,

The exact reason why you get the error"HTTP_NO_MEMORY " is below.

The problem here is caused by the application layer as there are too many HTTP sessions in use and none seem to be released. The error text HTTP_NO_MEMORY is somehow misleading here as memory is not the problem, but the

number of HTTP sessions that is limited to 100 by default.Therefore, we cannot solve the problem from our point of view.However, increasing the profile parameter icf/max_handle_key to a value of 150 or 200 and restarting each affected instance after that should reduce the pressure.

Therefore if u can increase the profile parameter icf/max_handle_key to a value of 150 or 200 it will allow more http sessions and you would not get the error HTTP_No_Memory.

This will solve the issue.

Thanks & Regards,

Pradeep Srigiri

Former Member
0 Kudos

Hello,

****************************

number of HTTP sessions that is limited to 100 by default.Therefore, we cannot solve the problem from our point of view.However, increasing the profile parameter icf/max_handle_key to a value of 150 or 200 and restarting each affected instance after that should reduce the pressure.

****************************

how is possible to chanfge this parameter ?

tks,

daniel_humberg
Contributor
0 Kudos

try program RSPARAM to change that parameter, but let this be done by your system administrator if required.

Former Member
0 Kudos

Dear Yusuf,

Your installation is on a 32 bit CPU or 64 bit?

Regards,

Ashutosh

Former Member
0 Kudos

Hi,

My installation is on a 64 bit CPU.

The job uses webservices FYI. I could find an SAP note 936835.

Regards,

Yusuf.