JDK-5068433 : (process) Thread dump on windows does not include child process'
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0,1.4.2_04
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-06-25
  • Updated: 2008-03-18
Related Reports
Relates :  
Description
After running many test with j2se 1.4.2_04 and j2se 1.5 beta on Solaris and Windows.  Solaris DOES show the child process' threads in the stack dump for both j2se version.  Windows DOES NOT for both j2se versions.

Windows only shows the parent process that is receiving the CTRL-BRK.  When a child process is created using a Runtime exec, those threads are not including in the dump on windows.

For Solaris and Linux the thread dump shows all the threads for the parent and child processes.


###@###.### 2004-06-25
###@###.### 2004-06-25

Comments
EVALUATION DETACHED_PROCESS will be used less frequently if and when the changes for bug 5008166: (process) Various improvements to Windows process creation code will be integrated. However, debuggability using CTRL-BRK is not the main consideration. Instead, we will be designing our process invocation architecture so as to make the best sense for the user. Besides, most processes spawned by java will not be other java processes (no need). ###@###.### 2004-06-26
26-06-2004

WORK AROUND Use a process listing program to get the pid of the relevant child process, and send the signal manually. I would try using, for example, MKS ps and kill. ###@###.### 2004-06-26
26-06-2004