Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send ctrl-break to java process on 64-bit Windows ala sendsignal on 32-bit

I frequently use the sendsignal tool for WebSphere Application Server processes (server, launchClient, wsadmin, etc.) in order to generate heap dumps. However, sendsignal doesn't work on 64-bit machines. Does anyone know of an alternative for sending the ctrl-break to a remote process?

Update: Bengt points out that this is basically the same as the following question. So, I guess my question is: has anyone found a way around this limitation in the past two years?

Can I send a ctrl-C (SIGINT) to an application on Windows?

like image 244
Brett Kail Avatar asked Oct 10 '22 22:10

Brett Kail


2 Answers

Why use a control break for the dumps why not use the commands that are provided precisely to do this kind of activity?

https://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tprf_generatingheapdumps.html

$AdminControl invoke $objectName generateHeapDump

This provides you with the required info and you get the dumps that you are after.

HTH

Manglu

like image 77
Manglu Avatar answered Nov 02 '22 22:11

Manglu


http://www.latenighthacking.com/projects/2003/sendSignal/

Latest comments link to working x64 versions for windows 2003 and windows 2008 too:

(2013-9-26) : Both, the 32-bit and 64-bit EXE versions can be downloaded from the following link: https://github.com/walware/statet/tree/master/de.walware.statet.r.console.core/win32 -- GeorgeP (2014-3-7) : I built both 32-bit and 64-bit version with Ctrl-C, it's called SendSignalCtrlC.exe and you can download it at: https://dl.dropboxusercontent.com/u/49065779/sendsignalctrlc/x86/SendSignalCtrlC.exe https://dl.dropboxusercontent.com/u/49065779/sendsignalctrlc/x86_64/SendSignalCtrlC.exe -- Juraj Michalak

like image 45
Vadzim Avatar answered Nov 02 '22 23:11

Vadzim