Hitachi

uCosminexus Application Server Command Reference Guide


cjlistthread (display thread information)

Organization of this page

Format

Without output of stack traces
cjlistthread [server-name] [-nameserver provider-URL]
With output of stack traces
cjlistthread [server-name] [-nameserver provider-URL] -detail

Function

This command outputs information about each thread being processed, such as the thread ID, root AP information, the thread's status, application name, start time of the method being executed, and the timeout value.

Arguments

server-name

Specifies the name of a connected J2EE server. If the server name is omitted, the host name is assumed.

-nameserver provider-URL

Specifies the access protocol for the CORBA Naming Service, the name of the host running the CORBA Naming Service, and the port number being used by the host. These items are specified in the following format:

protocol-name: : host-name: port-number

For details on the specification items, see 2.1.2 Provider URL.

-detail

Specifies that the stack trace information that was obtained most recently for each thread is to be output. However, even when this option is specified, stack trace information is not output for a thread whose status is running.

Input examples

Without output of stack traces
cjlistthread MyServer
With output of stack traces
cjlistthread MyServer -detail

Output format

ThreadID=thread-ID,RootApInfo=root-AP-information,Status=thread-status,AppName=application-name,StartTime=start-time,TimeOut=timeout-time

Output examples

Without output of stack traces
Current Time=HH: MM: SS
 
ThreadID=aa...aa,RootApInfo=bb...bb,Status=cc...cc,AppName=dd...dd,StartTime=ee...ee,TimeOut=ff...ff
ThreadID=aa...aa,RootApInfo=bb...bb,Status=cc...cc,AppName=dd...dd,StartTime=ee...ee,TimeOut=ff...ff
...
With output of stack traces
Current Time=HH: MM: SS
ThreadID=aa...aa,RootApInfo=bb...bb,Status=cc...cc,AppName=dd...dd,StartTime=ee...ee,TimeOut=ff...ff
  com.hitachi.XXXX
   at com.hitachi.YYYY
   at user.code.UserClass1
   at com.hitachi.ZZZZ
...
ThreadID=aa...aa,RootApInfo=bb...bb,Status=cc...cc,AppName=dd...dd,StartTime=ee...ee,TimeOut=ff...ff
  com.hitachi.xxxx
   at com.hitachi.yyyy
   at user.code.UserClass2
   at com.hitachi.zzzz
...
Legend:

aa...aa: Thread ID

bb...bb: Root AP information

cc...cc: Thread status

dd...dd: Application name

ee...ee: Start time

ff...ff: Timeout time

Return values

0:

The command terminated normally.

1:

The command terminated abnormally.

3:

A timeout occurred.

9:

The command could not be executed because there are no administrator privileges (in Windows).

Notes