Documentation Contents
Java Platform, Standard Edition Troubleshooting Guide
Contents    Previous    Next

Troubleshooting Tools Based on Operating System

Table 2-7 lists troubleshooting tools available on Windows operating system.

Table 2-7 Native Troubleshooting Tools on Windows

Tool Description

dumpchk

Command-line utility to verify that a memory dump file has been created correctly. This tool is included in the Debugging Tools for Windows download available from the Microsoft website, see Collect Crash Dumps on Windows.

msdev debugger

Command-line utility that can be used to launch Visual C++ and the Win32 debugger

userdump

The User Mode Process Dumper is included in the OEM Support Tools download available from the Microsoft website, see Collect Crash Dumps on Windows.

windbg

Windows debugger can be used to debug Windows applications or crash dumps. This tool is included in the Debugging Tools for Windows download available from the Microsoft website, see Collect Crash Dumps on Windows.

/Md and /Mdd compiler options

Compiler options that automatically include extra support for tracking memory allocations


Table 2-8 describes some troubleshooting tools introduced or improved in Linux operating system version 10.

Table 2-8 Native Troubleshooting Tools on Linux

Tool Description

c++filt

Demangle C++ mangled symbol names. This utility is delivered with the native C++ compiler suite: gcc on Linux.

gdb

GNU debugger

libnjamd

Memory allocation tracking

lsstack

Print thread stack (similar to pstack in Oracle Solaris operating system)

Not all distributions provide this tool by default; therefore, you might have to download it from Open Source downloads.

ltrace

Library call tracer (equivalent to truss -u in Oracle Solaris operating system)

Not all distributions provide this tool by default; therefore, you might have to download it from Open Source downloads.

mtrace and muntrace

GNU malloc tracer

proc tools such as pmap and pstack

Some, but not all, of the proc tools on Oracle Solaris operating system have equivalent tools on Linux. Core file support is not as good for Linux as for Oracle Solaris operating system; for example, pstack does not work for core dumps

strace

System call tracer (equivalent to truss -t in Oracle Solaris operating system)

top

Display most CPU-intensive processes.

vmstat

Report information about processes, memory, paging, block I/O, traps, and CPU activity.


Table 2-9 lists troubleshooting tools available on Oracle Solaris operating system.

Table 2-9 Native Troubleshooting Tools on Oracle Solaris Operating System

Tool Description

coreadm

Specify name and location of core files produced by the JVM.

cpustat

Monitor system behavior using CPU performance counters.

cputrack

Monitor process and LWP behavior using CPU performance counters.

c++filt

Demangle C++ mangled symbol names. This utility is delivered with the native C++ compiler suite: SUNWspro on Oracle Solaris operating system.

dtrace

Introduced in Oracle Solaris 10 operating system, DTrace is a dynamic tracing compiler and tracing utility. It can perform dynamic tracing of kernel functions, system calls, and user functions. This tool allows arbitrary, safe scripting to be executed at entry, exit, and other probe points. The script is written in C-like but safe pointer semantics language called the D programming language. See also DTrace Tool.

gcore

Force a core dump of a process. The process continues after the core dump is written.

intrstat

Report statistics on CPU consumed by interrupt threads.

iostat

Report I/O statistics.

libumem

Introduced in Oracle Solaris 9 operating system update 3, this library provides fast, scalable object-caching memory allocation and extensive debugging support. The tool can be used to find and fix memory management bugs, see Find Leaks with libumem Tool.

mdb

Modular debugger for kernel and user applications and crash dumps

netstat

Display the contents of various network-related data structures.

pargs

Print process arguments, environment variables, or the auxiliary vector. Long output is not truncated as it would be by other commands, such as ps.

pfiles

Print information on process file descriptors. Starting with Oracle Solaris 10 operating system, the tool prints the file name also.

pldd

Print shared objects loaded by a process.

pmap

Print memory layout of a process or core file, including heap, data, and text sections. Starting with Oracle Solaris 10, stack segments are clearly identified with the text [stack] along with the thread ID. See also Improvements to pmap Tool.

prstat

Report statistics for active Oracle Solaris operating system processes. (Similar to top)

prun

Set the process to running mode (reverse of pstop).

ps

List all processes.

psig

List the signal handlers of a process.

pstack

Print stack of threads of a given process or core file. Starting with Oracle Solaris 10 operating system, Java method names can be printed for Java frames. See also Improvements to pstack Tool.

pstop

Stop the process (suspend).

ptree

Print process tree containing the given PID.

sar

System activity reporter

sdtprocess

Display most CPU-intensive processes. (Similar to top)

sdtperfmeter

Display graphs showing system performance (for example, CPU, disks, and network).

top

Display most CPU-intensive processes. This tool is available as freeware for Oracle Solaris operating system but is not installed by default.

trapstat

Display runtime trap statistics. (SPARC only)

truss

Trace entry and exit events for system calls, user-mode functions, and signals; optionally stop the process at one of these events. This tool also prints the arguments of system calls and user functions.

vmstat

Report system virtual memory statistics.

watchmalloc

Track memory allocations.


Contents    Previous    Next

Oracle and/or its affiliates Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved.
Contact Us