InfoCenter Home >
8: Problem determination >
8.4: Traces >
8.4.1: Trace samples

8.4.1: Trace samples

Select one of the following traces to view sample output:

Trace file

The following trace fragment is an example of a trace file. Use this trace to debug server startup or shutdown problems:


[00.07.17 15:59:57:200 EDT] f0c45c4c AdminServer   A Initializing WebSphere Administration server

[00.07.17 15:59:57:230 EDT] a9d5dc4e DrAdminServer A DrAdmin available on port 1,038

[00.07.17 16:00:22:457 EDT] f0c45c4c SASConfig     A SAS Property:com.ibm.CORBA.principalName has been updated

[00.07.17 16:00:25:191 EDT] f0c45c4c InitialSetupI A Creating Sample Server Configuration

[00.07.17 16:00:29:797 EDT] f0c45c4c JDBCDriverCon A Importing JDBCDriver : Admin DB Driver

[00.07.17 16:00:31:209 EDT] f0c45c4c JDBCDriverCon A Installing JDBC Driver: Admin DB Driver on node db

[00.07.17 16:00:31:530 EDT] f0c45c4c JDBCDriverCon X Failed to install JDBC Driver Admin DB Driver  on node db.OpException com.ibm.ejs.sm.exception.JDBCDriverAlreadyInstalledException

[00.07.17 16:00:31:770 EDT] f0c45c4c DataSourceCon A Importing DataSource : Default DataSource

[00.07.17 16:00:32:451 EDT] f0c45c4c NodeConfig    A Importing Node : db

[00.07.17 16:00:32:962 EDT] f0c45c4c ApplicationSe A Importing ApplicationServer : Default Server

[00.07.17 16:00:33:823 EDT] f0c45c4c ContainerConf A Importing Container : Default Container

[00.07.17 16:00:35:746 EDT] f0c45c4c EJBConfig     A Importing EJB : HitCount Bean

[00.07.17 16:00:37:859 EDT] f0c45c4c EJBConfig     A Importing EJB : BeenThere Bean

[00.07.17 16:00:39:271 EDT] f0c45c4c ServletEngine A Importing ServletEngine : Default Servlet Engine

[00.07.17 16:00:40:843 EDT] f0c45c4c WebApplicatio A Importing WebApplication : default_app

[00.07.17 16:00:44:088 EDT] f0c45c4c ServletConfig A Importing Servlet : snoop

[00.07.17 16:00:44:248 EDT] f0c45c4c ServletConfig W Updating Servlet : snoop, since it was already created

[00.07.17 16:00:48:604 EDT] f0c45c4c ServletConfig A Importing Servlet : hello

[00.07.17 16:00:48:694 EDT] f0c45c4c ServletConfig W Updating Servlet : hello, since it was already created

[00.07.17 16:00:51:508 EDT] f0c45c4c ServletConfig A Importing Servlet : ErrorReporter

[00.07.17 16:00:51:609 EDT] f0c45c4c ServletConfig W Updating Servlet : ErrorReporter, since it was already created

[00.07.17 16:00:53:982 EDT] f0c45c4c ServletConfig A Importing Servlet : invoker

[00.07.17 16:00:54:182 EDT] f0c45c4c ServletConfig W Updating Servlet : invoker, since it was already created

[00.07.17 16:00:56:586 EDT] f0c45c4c ServletConfig A Importing Servlet : jsp10

[00.07.17 16:00:56:806 EDT] f0c45c4c ServletConfig W Updating Servlet : jsp10, since it was already created

[00.07.17 16:01:02:825 EDT] f0c45c4c WebApplicatio A Importing WebApplication : admin

[00.07.17 16:01:05:428 EDT] f0c45c4c ServletConfig A Importing Servlet : install

[00.07.17 16:01:05:539 EDT] f0c45c4c ServletConfig W Updating Servlet : install, since it was already created

[00.07.17 16:01:07:982 EDT] f0c45c4c ServletConfig A Importing Servlet : jsp10

[00.07.17 16:01:08:092 EDT] f0c45c4c ServletConfig W Updating Servlet : jsp10, since it was already created

[00.07.17 16:01:14:271 EDT] f0c45c4c ServletConfig A Importing Servlet : file

[00.07.17 16:01:14:361 EDT] f0c45c4c ServletConfig W Updating Servlet : file, since it was already created

[00.07.17 16:01:16:865 EDT] f0c45c4c ServletConfig A Importing Servlet : invoker

[00.07.17 16:01:16:975 EDT] f0c45c4c ServletConfig W Updating Servlet : invoker, since it was already created

[00.07.17 16:01:19:439 EDT] f0c45c4c ServletConfig A Importing Servlet : ErrorReporter

[00.07.17 16:01:19:529 EDT] f0c45c4c ServletConfig W Updating Servlet : ErrorReporter, since it was already created

UNIX identifierNanny trace

The following trace fragment is an example of a nanny trace. Use the nanny trace to monitor administrative server events:


[00.07.17 17:05:00:032 EDT] 1fa4cc16 Nanny         > main

"admin.config"

[00.07.17 17:05:00:032 EDT] 1fa4cc16 Nanny         > Initial admin server startup..

[00.07.17 17:05:06:231 EDT] 1fa4cc16 Nanny         < Initial adminserver startup successful..

[00.07.17 17:05:06:321 EDT] 1fa50b45 Nanny         > run : AdminServerMonitorThread

[00.07.17 17:05:06:321 EDT] 1fa50b45 Nanny         E AdminServerMonitorThread: Waiting for process 1719 to terminate.

DrAdmin

Windows NT IdentifierTo invoke DrAdmin:

  1. Go to the <WebSphere\AppServer\bin\debug> directory.
  2. Copy adminserver.bat to DrAdmin.bat
  3. UNIX identifierNote:On Unix platforms, the adminserver.bat file is adminserver.sh. Copy adminserver.sh to DrAdmin.sh.

  4. Replace the following line in the DrAdmin.bat file:
    %JAVA_HOME%\bin\java -mx128m com.ibm.ejs.sm.server.AdminServer -bootFile %WAS_HOME%\bin\admin.config %restart% %1 %2 %3 %4

           with

    %JAVA_HOME%\bin\java com.ibm.ejs.sm.util.debug.DrAdmin %1 %2 %3 %4 %5 %6 %7 %8 %9
  5. Save and close the DrAdmin.bat file
  6. From a command prompt in the <WebSphere\AppServer\bin\debug> directory, type
    DrAdmin [options]where options are:
    • -help [shows the help message]
    • -serverHost <Server host name> [Specify the host name of the server... defaults to local host]
    • -serverPort <Server port number> [Required... enter the port number where DrAdmin is listening]
    • -setTrace <Trace specification> [Specify any valid traceString, for example, "com.ibm.ejs.sm.*=all=enabled"]
    • -setRingBufferSize <Number of ring buffer entries in k> [Specify the number of trace entries to store in the main memory buffer... the default is 8k]
    • -dumpRingBuffer <Name of file to dump the ring buffer> [Defaults to file name JMONDump.xxxxxxxxxxxx where xxxxxxxxxxxx is a combination time of day and unique PID identifier extension]

      Windows NT IdentifierNote: On Windows NT, if the administrative server is started as a service, the default DrAdmin dump file will be located in the <Winnt\system32> directory.

    • -dumpState <dumpString> [Specify a unique identifier for this dump]
    • -stopServer [Stops the administrative server]
    • -stopNode [Does not apply unless the node is connected to the administrative server]
    • -dumpThreads [Dumps the threads in the server]

Another example of implementing a DrAdmin trace:

Windows NT IdentifierOn Windows NT:

  1. Create a DrAdminRun.bat file that contains the following information: set CLASSPATH=C:/jdk1.1.7/lib/classes.zip;C:/WebSphere/AppServer/lib/ujc.jar;C:/WebSphere/AppServer/lib/ejs.jar;C:/WebSphere/AppServer/lib/admin.jar echo %CLASSPATH% echo echo java -classpath %CLASSPATH% com.ibm.ejs.sm.util.debug.DrAdmin -serverPort %1 -setTrace %2=%3=%4
  2. Invoke DrAdminRun.bat with the port number and the trace string. Use the port number from DrAdmin entry in the trace file, xxxx. Your input from a command prompt will be: DrAdminRun xxxx com.ibm.ejs.* all enabled
  3. Start administrative client with the debug option by invoking adminclient.bat from the WAS_ROOT bin directory: adminclient debug


UNIX identifierOn UNIX platforms:

  1. Create a shell script file DrAdminRun that contains the following information: # modify classpath as appropriate for platform/environment # run as follows: sh DrAdminRun <server port> <trace spec> export CLASSPATH=/usr/jdk_base/lib/classes.zip:/usr/WebSphere/AppServer/lib/ujc.jar:/usr/WebSphere/AppServer/lib/ejs.jar:/usr/WebSphere/AppServer/lib/admin.jar echo $CLASSPATH echo echo java -classpath $CLASSPATH com.ibm.ejs.sm.util.debug.DrAdmin -serverPort $1 -setTrace $2 Note: Verify the CLASSPATH is correct for your environment. The script example was written for AIX. You must change the CLASSPATH for Solaris.
  2. Invoke DrAdminRun with the port number and the trace string. Use the port number from DrAdmin entry in the trace file, xxxx. Your input from a command prompt will be: sh DrAdminRun xxxx com.ibm.ejs.*=all=enabled

  3. Start the administrative client with the debug option by invoking adminclient.sh from the WAS_ROOT bin directory: adminclient.sh debug

Go to previous article: Traces Go to next article: Plugin Problems

 

 
Go to previous article: Traces Go to next article: Plugin Problems