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?
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.
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?
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?
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!
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop