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

≡放荡痞女 提交于 2019-12-22 06:36:50

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/6129790/send-ctrl-break-to-java-process-on-64-bit-windows-ala-sendsignal-on-32-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!