The Curious Case of Missing http Access Log Entries

Few days ago, a person from another team in our project approached us to about intriguing application access issue. They have a java based application deployed in weblogic server front-ended by Oracle http server. She told the application is working fine in production env but not working lower env. They are able to home page in prod and not able to open in lower env. They are getting 404 page not found error. 

She was basically a developer so asked our admin team to check if there is anything wrong with OHS configuration.

She told that she could http get logs in ohs access.log file but not in server access.log file which is present in $DOMAIN_HOME/servers/server1/logs. So she suspected some issue in ohs and ohs was failing to pass request to weblogic server. 
We have followed below steps to troubleshoot issue:
1) I got prod and test urls and tested from my machine. I too got same results. 
2) We have verified OHS configuration and everything looked OK.
3) We went deployments from admin console and verified application status. It is also OK.
4) We have verified OHS access logs and weblogic server logs. We didn’t find any meaningful information.
5) Meanwhile, I got some other task and returned after 30 mins. When I was checking weblogic access.log again, I saw entries related to this application. 
6) I suspected it is due to log http log buffer setting in weblogic. So, to confirm it I have hit this url multiple times. Hurry !!! I could see the log entries immediately.
7) So this what happened is that as the number of requests coming in the test env is less, weblogic bufffered log entries. This is the default behavior and can be modified http log setting present in Environment -> Servers -> ManagedServer -> logs -> http -> Advanced -> Log File Buffer.
It turned out that there was some issue with setting application context in code which caused the issue.

Comments

Popular posts from this blog

HOW WE REDUCED SOA OSB PROVISIONING FROM 4 DAYS TO 4 HOURS

NOT ABLE TO START RABBITMQ CLUSTER: CANNOT DECLARE A QUEUE ‘~S’ ON NODE ‘~S’: ~255P

SOA SUITE 12.2.1.4 INSTALLATION: GOT EXCEPTION WHEN AUTO CONFIGURING THE SCHEMA COMPONENT(S) WITH DATA OBTAINED FROM SHADOW TABLE