Use the AdminControl object to dump the Java threads of a running server. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
set jvm [$AdminControl completeObjectName type=JVM,process=server1,*] $AdminControl invoke $jvm dumpThreads
jvm = AdminControl.completeObjectName('type=JVM,process=server1,*') AdminControl.invoke(jvm, 'dumpThreads')