将 ctrl-break 发送到 64 位 Windows 上的 java 进程 ala sendsignal 32 位 [英] Send ctrl-break to java process on 64-bit Windows ala sendsignal on 32-bit
问题描述
我经常将 sendsignal 工具用于 WebSphere Application Server 进程(服务器、launchClient、wsadmin 等)以生成堆转储.但是,sendsignal 在 64 位机器上不起作用.有人知道将 ctrl-break 发送到远程进程的替代方法吗?
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?
更新: Bengt 指出这与以下问题基本相同.所以,我想我的问题是:在过去的两年里,有没有人找到解决这个限制的方法?
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?
我可以发送一个 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?
$AdminControl 调用 $objectName generateHeapDump
$AdminControl invoke $objectName generateHeapDump
这会为您提供所需的信息,您将获得所需的转储.
This provides you with the required info and you get the dumps that you are after.
HTH
茫茫
这篇关于将 ctrl-break 发送到 64 位 Windows 上的 java 进程 ala sendsignal 32 位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!