BEA Logo BEA WebLogic Server Release 6.1

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

  |  

  WebLogic Server Doc Home   |     Using WebLogic Server Clusters   |   Previous Topic   |   Next Topic   |   Contents   |   View as PDF

Troubleshooting Common Problems

 

The following section describes how to troubleshoot common problems including:

 


Collecting Diagnostic Information

Before contacting BEA Technical Support for help with cluster-related problems, follow the steps in this section to collect the required diagnostic information for your system. The primary diagnostic information for cluster-related problems is a log file that contains multiple thread dumps (if applicable) from the clustered server. This log file can be helpful in diagnosing a variety of cluster-related problems, but it is especially important for addressing problems related to cluster "freezes" and deadlocks.

Note: If you experience a cluster problem that involves a deadlock between server instances or otherwise causes your cluster to "hang," a log file that contains multiple thread dumps is a prerequisite for diagnosing your problem.

To create the required log file, follow these steps:

  1. Remove or back up any log files you may currently have. In practice you should create a new log file each time you boot a WebLogic Server instance, rather than append new sessions to a historical log file.

  2. Turn on verbose Garbage Collection (GC) output for your Java VM when you start WebLogic Server. See the next step for an example command line.

  3. Redirect both the standard error and standard output to a log file. Doing so places thread dump information in the proper context with WebLogic Server informational and error messages, and provides a more useful log for diagnostic purposes. For example:
    % java -ms64m -mx64m -verbose:gc -classpath $CLASSPATH
    -Dweblogic.domain=mydomain -Dweblogic.Name=clusterServer1
    -Djava.security.policy==$WL_HOME/lib/weblogic.policy
    -Dweblogic.admin.host=192.168.0.101:7001 
    -Dweblogic.management.username=system
    -Dweblogic.management.password=systemPassword weblogic.Server >> 
    logfile.txt 2>&1
    

  4. Continue running the WebLogic Server cluster until you have reproduced the problem.

  5. For server hangs, use kill -3 or <Ctrl>-<Break> to create the necessary threads dumps for diagnosing your problem. Make sure the log file contains multiple thread dumps on each server, with distinct intervals between thread dumps.

Note: If you are running the JRockit JVM under Linux, see Getting a JRockit Thread Dump Under Linux.

Getting a JRockit Thread Dump Under Linux

If you use the JRockit JVM under Linux, use one of the following methods to generate a thread dump.

Note: Under Linux, each execute thread appears as a separate process under the Linux process stack. To use Kill -3 on Linux you supply must match PID of the main WebLogic execute thread, otherwise no thread dump will be produced.

Providing Diagnostics to BEA Technical Support

After you have created a diagnostic log file (with thread dumps, if applicable), use the following guidelines when providing information to your BEA Technical Support representative:

  1. Compress the log file using an operating system compression utility:
    % tar czf logfile.tar logfile.txt
    

  2. Append the compressed log file to an e-mail message to your Technical Support representative.

    Note: Always include the compressed log file as an attachment to the message. Do not cut and paste the log file into the body of the e-mail.

  3. If the compressed log file is too large to attach to an e-mail message, you can use the BEA Customer Support FTP site.

 


Addressing Common Problems

The following sections provide solutions to common cluster-related problems. They also provide information for how to diagnose non-specific problems, such as poor cluster performance.

Server Fails to Join a Cluster

There are several reasons why a WebLogic Server does not join a cluster on startup, including general network availability and WebLogic-specific configuration problems. Use this checklist to check your configuration and startup process.

  1. Check your command-line parameters for typos, misspellings, etc.

  2. Verify that there are no physical problems with your network connection. Network connections can be verified using the dbping utilities discussed in Testing Connections.

  3. Verify that no other application is using the cluster multicast address.

  4. Run the utils.MulticastTest utility to verify that multicast is working.

Other items which require troubleshooting include general configuration errors and communications errors, such as:

 

back to top previous page next page