我正在试图终止运行时间长且执行时间长的当前进程/查询
show processlist
命令,我可以列出系统中当前存在的所有进程stae=Sending data
,所以我想使用state = Sending data的id终止该进程kill id
,它将杀死我给出其ID的进程下面是我的servlet do-Get和do-Post
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
}
我只是想知道如何使用Java代码来完成此操作,请指导我,我们将不胜感激
This is the link i have found but not getting idea how to achieve that