4

One of my applications starts java.exe, but in between this 'java.exe' is killed by some other process.

How can I know which process kills the java.exe. I am using Windows XP SP 2.

Rauf
  • 3,865

1 Answers1

1

tl;dr: enable and check silent process exit logs with gflags.exe and Windows' Event Viewer.

Install Windows' debugging tools

  • go to Windows' SDK download page;
  • download and run the installer;
  • select the tools you want. Only Debugging Tools for Windows is needed.

By default the tools are installed to C:/Program Files (x86)/Windows Kits

Locate the appropriate version of gflags for your application

If using the default installation path, 32-bit gflags is at C:/Program Files (x86)/Windows Kits/10/Debuggers/x86 and 64-bit is at C:/Program Files (x86)/Windows Kits/Debuggers/x64

Enable logging

  • Run the appropriate version of gflags.exe for the application and switch to the "Silent Process Exit" tab;
  • enter the process' image name on the "Image" field. "java.exe" in this case;
  • press the tab key so gflags selects the image and refreshes the option fields;
  • enable silent exit monitoring;
  • enable notification if you would like to be notified when the process exits;
  • enable ignore self exits if you are sure the program isn't self-exiting (I don't recommend you enable it at first. Only on subsequent tests);
  • press OK to save your settings and close gflags.

Now whenever the application is killed an event should be logged. You can see the events on Windows' Event Viewer. press the windows key to open the start menu, type "event" and it should pop up.

When it opens, on the right side navigate to Event Viewer > Windows Logs > Appplication. Double-click the events and go the Details tab. It should help you identifying what killed your process.

Thribs
  • 11