Page 1 of 2
Delay in returning Connection ResponseCode for >1 MB files
Posted: Sat May 09, 2009 3:14 pm
by pounraj.manikandan
Hi,
I have gone through this forum topics were i couldn't find any subjects related to this. Apologies if i have missed some topics.
We EGNYTE.com are using JFILEUPLOAD and JBATCHUPLOAD for our application. We are facing following problem:
1. When we upload a file >1 MB, Client transmits file streams to server, and waits for Connection ResponseCode a minute or more than that according the filesize.
We tried to analyse this issue, and finally came to know that the time taken is when server handles multipart request and processing those request when it finds FileItem. We can say exactly when the ServerFileUpload tries to process those streams at background.
Note: This issue is occuring after deploying our application in internet. There is no delay in Connection Response Code when we tried it locally.
Please give us your valuable suggestions.
If need we can also send you our current configuration details.
Thanks in advance.
Pounraj Manikandan
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Sat May 09, 2009 3:41 pm
by mpselvaganesh
I also have the same issue in server side if i upload a large file more than 5 MB.
There is some GC running while Streams.copy() method invoked in org.apache.commons.fileupload.FileUploadBase class
Here is the error log. In this case it takes 6 minutes to copy the stream. PLease help me to resolve the issue
CfuServletFileUpload.parseRequest: before Streams.copyThu May 07 15:54:44 GMT 2009 [GC 25083K->22601K(26828K), 0.0158610 secs] [GC 25161K->22666K(26828K), 0.0125700 secs] [GC 24371K->23207K(26828K), 0.1870920 secs] [GC 25577K->25195K(28116K), 0.0242560 secs] [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor14]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor11]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor23]
[Unloading class sun.reflect.GeneratedMethodAccessor37]
[Unloading class sun.reflect.GeneratedMethodAccessor41]
[Unloading class sun.reflect.GeneratedMethodAccessor31]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
[Unloading class sun.reflect.GeneratedMethodAccessor49]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor7]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor25]
[Unloading class sun.reflect.GeneratedMethodAccessor38]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor20]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor22]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor31]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor26]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor21]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor24]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor30]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor28]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor16]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor27]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor29]
[Unloading class sun.reflect.GeneratedMethodAccessor39]
[Unloading class sun.reflect.GeneratedMethodAccessor40]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor9]
25195K->19355K(28116K), 0.8555010 secs] [GC 22679K->20559K(35972K), 0.0155050 secs]
CfuServletFileUpload.parseRequest: after Streams.copyThu May 07 16:00:39 GMT 2009
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Sun May 10, 2009 8:47 am
by support
Do you have any anti-virus on server-side ?
Is it a Linux/Unix or Windows web server ?
mpselvaganesh, do you have the same delay if you try with your JSPUpload sample ?
http://www.jfileupload.com/products/tools/index.html
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Sun May 10, 2009 12:01 pm
by mpselvaganesh
Yes we are using the JSPUpload.
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Sun May 10, 2009 3:23 pm
by support
How much Java Heap size do you have ? 64MB minimum is recommended.
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Mon May 11, 2009 4:34 pm
by pounraj.manikandan
Hi,
Sorry for late reply.
Do you have any anti-virus on server-side ?
We don't have any anti-virus on server-side.
Is it a Linux/Unix or Windows web server ?
OS is Linux CentOS. We have deployed our application in Apache Tomcat-5.5.24 we server.
We are also using JSPUPLOAD utility.
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Mon May 11, 2009 5:19 pm
by support
Ok, we've also have Tomcat here + JSPUpload and I don't notice long delay. We have Apache2 in front of Tomcat. Could you check how much Java heap size do you have ? Heap size is not RAM size, it's the memory size allowed for the java process (i.e. Tomcat)
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Thu May 14, 2009 2:51 am
by pounraj.manikandan
Its working correctly for us in local tomcat installation. If we move the code to web server over internet we face this issue.
We have provided 512 MB max heap size for our Tomcat program.
Please let us know if you need any configuration details...
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Thu May 14, 2009 7:08 pm
by support
Do you have the same configuration on your local test server and internet web server ?
I mean do you have just Tomcat for both or Apache + Tomcat ?
Are you using an hosting service or do you manage your own server ?
Also, are you able to monitor file writing on internet server while uploading ?
Finally, could you provide me an URL with the applet I could check from here ? It would help to troubleshoot.
Re: Delay in returning Connection ResponseCode for >1 MB files
Posted: Fri May 15, 2009 3:30 am
by pounraj.manikandan
Sure.
I will get permission and let you know the details.
Thanks
Pounraj Manikandan