Unable to attach to 64-bit process The -F option can be used when the target process is not respond

1,在windows开发客户端使用   jmap -dump:format=b,file=heap1.hprof 6712 导出文件,报下面错

 Unable to attach to 64-bit process The -F option can be used when the target process is not respond

2,于是我想在方法里面加入-F,命名变成 jmap -F -dump:format=b,file=heap1.hprof 6712,报错变成下面的

Attaching to process ID 6712, please wait...
Error attaching to process: Windbg Error: GetModuleParameters failed!
sun.jvm.hotspot.debugger.DebuggerException: Windbg Error: GetModuleParameters failed!
        at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.attach0(Native Method)
        at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.attach(WindbgDebuggerLocal.java:152)
        at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:671)
        at sun.jvm.hotspot.HotSpotAgent.setupDebuggerWin32(HotSpotAgent.java:569)
        at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:335)
        at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.tools.jmap.JMap.runTool(JMap.java:201)
        at sun.tools.jmap.JMap.main(JMap.java:130)

3,百思不得其解,在度量上面找了半天也没有找到满意的答案。

4,于是自己尝试使用jar包的情况运行

java -jar D:\developsoftware\demo\target\demo-0.0.1-SNAPSHOT.jar -Xmx32M -Xms32M

5,执行上面操作 成功

jmap -dump:format=b,file=heap1.hprof 21144
Dumping heap to D:\heap1.hprof ...
Heap dump file created

6,问题算是解决了,但是具体是什么原因还是未知,在此只是给大家提供一种参考。


http://www.niftyadmin.cn/n/1639688.html

相关文章

java中深浅拷贝概念

Java中对象的创建clone顾名思义就是复制, 在Java语言中, clone方法被对象调用,所以会复制对象。所谓的复制对象,首先要分配一个和源对象同样大小的空间,在这个空间中创建一个新的对象。那么在java语言中,有…

spring学习1之(组件注册-@Configuration@Bean给容器中注册组件)

一&#xff0c;xml配置文件版bean注入 1&#xff0c;新建一个maven工程&#xff0c;导入依赖&#xff0c;pom文件如下&#xff1a; <?xml version"1.0" encoding"UTF-8"?> <project xmlns"http://maven.apache.org/POM/4.0.0"xmlns:…

php jsp提交表单提交方式,JSP之表单提交get和post的区别详解及实例

JSP之表单提交get和post的详解及实例一 get和post的区别二 实战(post方式提交)1、login.jspString path request.getContextPath();String basePath request.getScheme()"://"request.getServerName()":"request.getServerPort()path"/";%>…

css3动画应用

按钮边框 按钮 首先实现正常边框按钮&#xff0c; 其次按钮相对定位&#xff0c;因为旋转的内容需要绝对定位&#xff0c; 旋转内容做伪元素处理&#xff0c;z-index设置负数是为了把按钮文字显示出来&#xff0c; 定位一半一半是把长方块中心点放按钮正中&#xff0c; 变形原…

spring学习2之组件注册-@ComponentScan-自动扫描组件指定扫描规则

一&#xff0c;配置文件版 <?xml version"1.0" encoding"UTF-8"?> <beans xmlns"http://www.springframework.org/schema/beans"xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance"xmlns:context"http://www.spri…

java从数据库读取菜单递归生成菜单树

首先看一下菜单的样子根据这个样子我们定义菜单类 public class Menu {// 菜单idprivate String id;// 菜单名称private String name;// 父菜单idprivate String parentId;// 菜单urlprivate String url;// 菜单图标private String icon;// 菜单顺序private int order;// 子菜单…

最大熵图像分割matlab,两个matlab实现最大熵法图像分割程序

%两个程序&#xff0c;亲测可用clear allaimread(moon.tif);figure,imshow(a)countimhist(a);[m,n]size(a);Nm*n;L256;countcount/N;%%每一个像素的分布概率countfor i1:Lif count(i)~0sti-1;break;endendstfor iL:-1:1if count(i)~0ndi-1;break;endendndfcount(st1:nd1); %f是…

Mysql8在Centos7.2上面安装

1&#xff0c;cd /usr/local/software 这个目录下面 2&#xff0c;wget -i -c https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm 下载mysql8.0的rpm 3&#xff0c;先安装 yum install -y mysql80-community-release-el7-1.noarch.rpm&#xff…