cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice timeout

LeonardoAraujo
Active Contributor
0 Kudos

Guys,

I created a ABAP webservice to be consumed by a .NET application.

Since some of the calls process long updates in SAP and they are getting timeouts.

1 - what is the procedure to troubleshoot which timeout parameter should I play with?

2 - What are the recommended values for them?

I know the icm/server_port_ < n > TIMEOUT and PROCTIMEOUT parameters and also icm/keep_alive_timeout , but I am not sure which one is the one I should be adjusting.

Here are my current values:

Any help is appreciated.

Thanks,

Leonardo De Araujo

-


| ICM Parameter | -
| | |Services | |----
| |icm/server_port_0 = PROT=HTTP,PORT=8000 | |icm/server_port_1 = PROT=SMTP,PORT=0 | | | |Hard limits | |----
| |icm/max_services = 30 | |icm/listen_queue_len = 512 | |icm/req_queue_len = 500 | |icm/max_conn = 500 | |icm/max_sockets = 2048 | | | |Thread handling | |----
| |icm/min_threads = 10 | |icm/max_threads = 50 | |icm/min_spare_threads = 3 | | | |Tracing and statistic | |----
| |rdisp/TRACE = 1 | |icm/tracefile = dev_icm | |icm/log_level = 0 | |icm/stat_level = 1 | |icm/security_log = LOGFILE=dev_icm_sec,MAXSIZEKB=500 | |icm/accept_remote_trace_level = 0 | | | |Monitoring | |----
| |icm/ccms_monitoring = 1 | |icm/ccms_refresh_rate (sec.) = 30 | | | |Timeout handling | |----
| |icm/keep_alive_timeout (sec.) = 60 | |icm/conn_timeout (msec.) = 5000 | | | |HTTP settings | |----
| |icm/HTTP/max_request_size_KB = 102400 | |icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50000| |icm/HTTP/server_cache_0 = PREFIX=/, CACHEDIR=/usr/sap/C11/DVEBMGS00/dat| | a/cache | |icm/HTTP/admin_0 = PREFIX=/sap/admin,DOCROOT=/usr/sap/C11/DVEBMG| | S00/data/icmanroot/admin,AUTHFILE=/usr/sap/C11/SYS | |icm/HTTP/auth_0 = PREFIX=/,FILTER=SAP | | | |HTTP(S) error handling | |----
| |is/HTTP/show_detailed_errors = 1 | | | |HTTPS (SSL) settings | |----
| |icm/HTTPS/verify_client = 1 | |ssf/name = | |ssf/ssfapi_lib = | |sec/libsapsecu = | |ssl/ssl_lib = | | | |Context Quotas | |----
| |icm/HTTP/context_quota = 90% | |icm/HTTPS/context_quota = 90% | |icm/SMTP/context_quota = 90% | | | |Memory Pipe settings | |----
| |mpi/total_size_MB = 80 | |mpi/buffer_size = 65536 | | | |J2EE settings | |----
| |rdisp/j2ee_start = 1 | |is/HTTP/default_root_hdl = J2EE | | | |Content Filter settings | |----
| |csi/enable = TRUE | |csi/SAP/csa_lib = /usr/sap/C11/SYS/exe/run/libsapcsa.o | | | |Misc | |---- | |icm/host_name_full = eszsansrv018 | |icm/cancel_strategy = cancel requests without session (stateless) | |rdisp/plugin_auto_logout = 1800 | |is/HTTP/virt_host_0 = :; | |is/SMTP/virt_host_0 = :; | -

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Leonardo,

we had a similar issue with our BSP-application on long running selections.

We increased the parameter icm/keep_alive_timeout (sec.) from 60 to 180 seconds to avoid a timeout. This works fine, but: this change has some disadvantages

- your system load increases

- the long runtim may cause security issues

I hope that helps.

Regards,

Tobias

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Leo,

in the very first post you have pasted all your parameters..where do you get that? i want to modify

icm/HTTP/context_quota

not able to get that. i use only java stack.

please help