|
Problem |
How do you clear the log files for the WebSphere
Application Servers and WebSphere Admin Server when they startup? |
|
Solution |
When starting or restarting the WebSphere Application
Server, the standard out and standard error files are not cleared. Placing
a "!" before the path to the output file everytime the application server
starts or restarts the file WILL be cleared out.
This also works to clear the admin server output files. Place the "!"
after the "=" and before the path and file name.
Examples:
Application Server:
- Start the Admin Console and select the application server settings
page.
- Edit where you specify the output file names in the Admin Console
(e.g. stderr and stdout) and change it from:
- Windows:
C:\WebSphere\AppServer/logs/Default_Server_stdout.log
to
!C:\WebSphere\AppServer/logs/Default_Server_stdout.log
- Unix:
/opt/WebSphere/AppServer/logs/Default_Server_stdout.log
to
!/opt/WebSphere/AppServer/logs/Default_Server_stdout.log
Admin Server:
- Edit the admin.config file
- Change the output file specification from:
- Windows:
com.ibm.ejs.sm.adminServer.traceFile=C:/WebSphere/AppServer/logs/tracefile
to
com.ibm.ejs.sm.adminServer.traceFile=!C:/WebSphere/AppServer/logs/tracefile
- Unix:
com.ibm.ejs.sm.adminServer.traceFile=/opt/WebSphere/AppServer/logs/tracefile
to
com.ibm.ejs.sm.adminServer.traceFile=!/opt/WebSphere/AppServer/logs/tracefile
|
|
|
|
|
|
|