on 09-08-2008 11:36 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Pradeep,
This has resolved my rpoblem.
Regards,
Yusuf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
Dear Yusuf,
Your installation is on a 32 bit CPU or 64 bit?
Regards,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.