NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
Recently I was asked to investigate how long our web service requests were taking to process at the level of the application server. We had logging inside the web services for total elapsed time serving a request, but we wanted to see if there was any overhead within the app server. Our app server is 10gAS with Apache 1.3 as the web tier.
When I first started looking into this, I thought the task will be quite straight forward and all I would have to do was edit the httpd.conf
line for the common
log, which is used for access logging. I was wrong on this one. After editing this file and restarting, the access log output didn't change.
The thing that I forgot to take into account was that all our services run over SSL, which meant that the access log configuration in httpd.conf
is not used! So with this in mind, I opened up the ssl.conf
file and found my VirtualHost
The config file is in: $ORACLE_HOME/Apache/Apache/conf/ssl.conf
In the "General setup for the virtual host"
, I found a TransferLog
line, which I changed to the LogFormat
lines instead as per below. The %D
parameter logs the time to serve the request.
After a restart, the access log started showing me the request times as expected.
The only catch here is that the request times are in whole
seconds, there is no sub-second precision. Apache 2.x has an option to output the microseconds elapsed, sadly this was not available in 1.3.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...