on 02-25-2010 1:38 PM
Hi,
I have developed an Web Dynpro JAVA application which calls an RFC to upload a file on SAP R/3 server.
One of the import parameter is of type XSTRING which maps to JAVA type as byte[].
I am using File Upload UI element to select file and pass byte data to RFC.
Now, I tried uploading files with size ranging from 1.5MB to 14.5MB and response time for applications is from 20 seconds to 3 min 50 seconds.
I traced this using Wily IntroScope and it reveals that out of 20 seconds of response time, 17 seconds were consumed by "DispatcherServlet".
Is this normal for a File Upload RFC call to take up this much amount of time? Is there any way to optimize it?
How harmful this is to production environment?
Please help.
Thanks and regards,
Amey Mogare
This the normal behavior in case of file upload scenarios.
There's a flow of byte stream from client browser to server which consumes large amount of time, especially when uploading large files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
If fesible place this functionality into a seperate Controller , thing will drastically optimize. other way could be zip the file before upload and then upload this file to server (Its a little cumbersome as as you have first zip it unzip at server level)
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.