Databases Reference
In-Depth Information
All
-Xverbose
JRockit loggings are not redirected to the server logfile
and still written to the
PROD_ServerXX.out
file.
Rotating the
STDOUT
log will be explained further on this chapter.
There's more...
The log disk usage can be limited with WLST.
Limiting the log disk usage by using WLST
1. Log in as the
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('/Log/PROD_DOMAIN')
cmo.setRotateLogOnStartup(true)
cmo.setFileMinSize(50000)
cmo.setNumberOfFilesLimited(true)
cmo.setFileCount(20)
cd('/Servers/PROD_Server01/Log/PROD_Server01')
cmo.setRotateLogOnStartup(true)
cmo.setFileMinSize(50000)
cmo.setNumberOfFilesLimited(true)
cmo.setFileCount(20)
cmo.setRedirectStdoutToServerLogEnabled(true)
cmo.setRedirectStderrToServerLogEnabled(true)
cmo.setStdoutSeverity('Off')
cd('/Servers/PROD_Server01/WebServer/PROD_Server01/WebServerLog/
PROD_Server01')
Search WWH ::
Custom Search