on 06-12-2006 4:02 PM
Hello to all!
The following code runs in a TIME_OUT or sometimes in a SYSTEM_CORE_DUMPED error message when calling the method cl_http_server=>server_cache_upload().
DATA: cached_response TYPE REF TO if_http_response.
DATA: guid TYPE guid_32.
DATA: l_string TYPE string.
DATA display_url TYPE STRING.
*DO 1333333 TIMES. " 20 MB
DO 1666666 TIMES. " 25 MB
CONCATENATE l_string 'nur ein Test...' INTO l_string.
ENDDO.
CREATE OBJECT cached_response TYPE cl_http_response
EXPORTING add_c_msg = 1.
cached_response->set_cdata( l_string ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'application/vnd.ms-excel' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid INTO display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
But setting the l_string to size of about 20 MB does work and consumes less than 1 second.
Can anyone explain me that behavior?
Thanks
Thilo
may the issue is with this profile parameter
icm/HTTP/server_cache_<xx>/size_MB
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Pls check http://help.sap.com/saphelp_nw2004s/helpdata/en/e5/81113a2604c679e10000000a114084/frameset.htm
for proper calculation of the param mentioned by Raja.
and http://help.sap.com/saphelp_nw2004s/helpdata/en/72/c2153aab4a0c0ee10000000a114084/frameset.htm for background info.
Eddy
1.
The formula in
http://help.sap.com/saphelp_nw2004s/helpdata/en/e5/81113a2604c679e10000000a114084/frameset.htm
doesn't make sense. I think it should be:
memory_needed = 2 * (2N + U) * M + S * 1000000 bytes
instead of:
memory_needed = 2 * (2N + U) * M + S * 100000 bytes
2.
If the issue depends on the profile parameter icm/HTTP/server_cache_<xx>/size_MB (or maybe
icm/HTTP/server_cache_<xx>/memory_size_MB) a SYSTEM_CORE_DUMPED shouldn't bee the right answer of the system.
Still working on the problem...
Thilo
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.