Generating Logs for Troubleshooting

You can redirect standard error and standard output to integrate thread dump information with server error messages to produce a more useful log for troubleshooting purposes. A thread dump displays the current stack in an active thread. Here are the steps for collecting a more useful log with thread dump information to send to Oracle Support personnel:

1. Stop the server and back up the current log files.

2. Restart the server with the following command:

% java -ms64m -mx64m -verbose:gc -classpath $CLASSPATH
-Dweblogic.domain=mydomain -Dweblogic.Name=clusterServer1
-Djava.security.policy==$WL_HOME/lib/weblogic.policy
-Dweblogic.admin.host=localhost:7011 weblogic.Server >> logfile.txt

The previous startup ...

Get Oracle WebLogic Server 11g Administration Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.