• Post Reply Bookmark Topic Watch Topic
  • New Topic

uneven time taken in processing a request

 
Karan Jain
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having a simple web application of file upload using apache file upload utility. I have a strange problem. When i was testing the application for 2000 records in the file it was taking 3 secs to process but when our business analyst is testing the same, it is taking 40-60 secs to process the same file. I took the same file and it took 3 secs for me on the same server at almost the same time. We are only 2 person testing right now so there is no chance that there can be many users testing. I tested 3 times on my PC and then tested from my colleagues PC and got the same results (i.e. 3 secs).

Can anyone have any idea what can go wrong for my Business Analyst PC? Any settings in IE6?

Any help is appreciated.

Thanks,
Karan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karan,
Does it always take that long for the business analyst? If he/she tries again, does it still take that long? If not, maybe something was happening on the server just then.

If it does take that long, could the time be in uploading the file rather than processing? Maybe the business analyst is on dial-up?

You can put in some logging on the server side to log the actual processing time. If this is large, you can see where the time goes. If not, it is likely a network problem.

Also, are you and the business analyst using the same file? If not, maybe the data takes different times to run. For example, a lot of duplicate data would benefit more from caching.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you and the business analyst connecting to the servlet?
Is there any difference in firewalls or security programs?
What is the size in bytes of a typical upload?

Bill
 
Karan Jain
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you replies!!!

Here are some more details:
1) File size is 1.7 MB
2) Same file is used by me and my BA
3) We are connecting to the same test server and we are on the same network
4) I am using the Apache File Upload utility and most time difference is in executing the 2nd line of code which is parsing the incoming multipart request:


Its taking 33 secs for executing the above 2 lines for my BA and 3 secs for me.

Please let me know if any additional information will help.

Thanks and regards,
Karan
[ October 23, 2007: Message edited by: Karan Jain ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karan,
One other thing to try is to take your servlet out of the picture. If you and the business analyst can both measure your connection speed on speedtest you can see if there is a difference.

I would also follow up to see if the slowness is repeatable or just happened once.
 
Karan Jain
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,
Thanks for the reply!

We found that the problem is encountered only from that particular machine.
I asked to install Mozilla and try uploading a file using that. If that gives the same result then it is a system problem else I will check the IE settings.

Please let me know your thoughts on this.

Appreciate your time...

Thanks and regards,
karan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karan,
Your though process is sound. It is good that it is just the one machine as that means your web app is fine. I don't have any other thoughts. It's more of a troubleshooting a computer problem now. If you have more questions on this, you might want to post a new thread (possibly linking to this one) in General Computing. People there know more about what can go wrong on a computer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!