简体   繁体   English

在 64 位上发送 ctrl-break 到 java 进程 Windows ala sendsignal 在 32 位上

[英]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.我经常将sendsignal工具用于 WebSphere Application Server 进程(服务器、launchClient、wsadmin 等)以生成堆转储。 However, sendsignal doesn't work on 64-bit machines.但是,sendsignal 不适用于 64 位机器。 Does anyone know of an alternative for sending the ctrl-break to a remote process?有谁知道将 ctrl-break 发送到远程进程的替代方法?

Update: Bengt points out that this is basically the same as the following question.更新: Bengt指出这与以下问题基本相同。 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? 我可以将 ctrl-C (SIGINT) 发送到 Windows 上的应用程序吗?

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 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 $AdminControl 调用 $objectName generateHeapDump

This provides you with the required info and you get the dumps that you are after.这为您提供了所需的信息,并且您可以获得所需的转储。

HTH HTH

Manglu芒鲁

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

Latest comments link to working x64 versions for windows 2003 and windows 2008 too:最新评论也链接到 windows 2003 和 windows 2008 的工作 x64 版本:

(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 (2013-9-26):32 位和 64 位 EXE 版本都可以从以下链接下载: https://github.com/walware/statet/tree/master/de.walware.statet。 r.console.core/win32 -- GeorgeP (2014-3-7):我用 Ctrl-C 构建了 32 位和 64 位版本,它被称为 SendSignalCtrlC.exe,您可以在以下位置下载它: https:// dl.dropboxusercontent.com/u/49065779/sendsignalctrlc/x86/SendSignalCtrlC.exe https://dl.dropboxusercontent.com/u/49065779/sendsignalctrlc/x86_64/SendSignalCtrlC.exe -- Juraj Michalak

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM