Databases Reference
In-Depth Information
The
access.log
file can be used in a troubleshooting process to
analyze if the whole Managed Server is slow or only a particular request
is taking more time than usual.
Always compare a problematic scenario to an error-free scenario when troubleshooting a
WebLogic Managed Server. Compare the heap usage, count the number of requests, and
watch the time taken.
There's more...
The
access.log
file can be customized with WLST.
Adding the time taken field using WLST
Carry out the following steps to add the
time taken
field:
1. Log in as a
wls
user to shell and start WLST:
[wls@prod01]$ $WL_HOME/common/bin/wlst.sh
2. Connect to the Administration Server using
wlsadmin
as the user,
<pwd>
as the
password, and
t3://adminhost.domain.local:7001
as the server URL:
wls:/offline> connect("wlsadmin","<pwd>","t3://adminhost.domain.
local:7001")
3. Run the following WLST commands:
edit()
startEdit()
cd('/Servers/PROD_Server01/WebServer/PROD_Server01/WebServerLog/
PROD_Server01')
cmo.setLogFileFormat('extended')
cmo.setELFFields('c-ip date time cs-method cs-uri sc-status bytes
time-taken')
cd('/Servers/PROD_Server02/WebServer/PROD_Server02/WebServerLog/
PROD_Server02')
cmo.setLogFileFormat('extended')
cmo.setELFFields('c-ip date time cs-method cs-uri sc-status bytes
time-taken')
cd('/Servers/PROD_Server03/WebServer/PROD_Server03/WebServerLog/
PROD_Server03')
Search WWH ::
Custom Search