• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

uneven time taken in processing a request

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Alas, poor Yorick, he knew this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic