Have a n-tire web application and search often times out after 30 secs. How to detect the root cause of the problem?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Log at separation of concerns, in this case at the boundaries of each layer. when you say search, I’d assume that this is a web app where the user is searching for some text.
Is the DB search involved ? Is there a possibility that your garbage collector is kicking in and the search timed out ? Try to log your garbage collection pauses using java command line switches. Later, you can analyse when your JVM was doing GCs. OR you can use a tool like JConsole or JvisualVM.
BR,
~A