• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

long delay before request reach the servlet

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, just as issue state, I have a problem when user try to register itself.
The amount of time which elapsed between events :
1) when user click button for login, sending only username-password infomations to the server
2) and the event when servlet receive this request, is about 10 seconds!
It's considerable amount of time, for that action, isn't it? Why is that?
In the same application, when user perform registration which represent sending 10 time larger information, that time between user click and servlet receive the request, is about 2-3 seconds.
So what do you think is a problem?
thanks!
 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please post the code then we can identify what the problem is???

avi sinha
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing special, we have login form with two fields for username and password, nothing more. The elapsed time between user click on submit button and when servlet receive a request, is about 10 seconds. Its happening on my pc upon what I perform testing.

 
chandrakant karale
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the code, then only something can be said. And also detail about
10 times larger information'
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no way to help you without further information.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you determining
when servlet receive a request
?

Creation of the request object should take about the same amount of time no matter what the servlet eventually does with it.

Bill
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple. I click a button at 00 seconds, and start counting. At the login servlet I write:

If I start in 15.30.40 (h/m/s) and inside servlet is written :Inside Authenticate servlet at : 15.30.50 , it means that, 10 seconds has elapsed between clicking on the button, and when request arrives in the servlet. Simple calculation. It is not problem, about time measurement but about such a long delaying.
Why is so long?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see how anybody can possibly provide any input--we have absolutely nothing to go on. We don't know how you're authenticating, what if anything is in the logs, nothing.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I didn't provide, because there is any 'strange' log, with error/anomaly or whatever. It's probably up to my system, if there is no any tweaking about that issue.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all other servlets take the normal time to get the request and only your "Authenticate" servlet takes 10 seconds something very very odd is going on.

Is that log.info call the very first thing in your service, doGet or doPost method?
Is there some Filter defined for that servlet only?
Exactly what process checks the username and password?
Are you using Tomcat security constraints?
What is the response time for serving plain HTML pages?

Bill
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's because of my system I believe. Now I have tested multiple times and the elapsed time from click on login button, through the database quering, and finally exiting the login servlet, takes only a second - two!
Probably the processor of mine was overhead these days, and I thought that some tweaking might exists about server.
Anyway thank you on your support!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic