说说jmap命令
jmap命令
ps -ef| grep java
root 1426 1359 0 10:30 pts/0 00:00:00 grep java
root 7807 1 0 Apr28 ? 00:22:52 /usr/java/jdk1.8.0_45/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-8.0.30/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/apache-tomcat-8.0.30/endorsed -classpath /opt/apache-tomcat-8.0.30/bin/bootstrap.jar:/opt/apache-tomcat-8.0.30/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-8.0.30 -Dcatalina.home=/opt/apache-tomcat-8.0.30 -Djava.io.tmpdir=/opt/apache-tomcat-8.0.30/temp org.apache.catalina.startup.Bootstrap start
jmap 7807
Attaching to process ID 7807, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.45-b02
0x0000000000400000 7K /usr/java/jdk1.8.0_45/bin/java
0x00007f17958dd000 36K /usr/java/jdk1.8.0_45/jre/lib/amd64/libawt_headless.so
0x00007f1795ae4000 754K /usr/java/jdk1.8.0_45/jre/lib/amd64/libawt.so
0x00007f17eaee5000 108K /lib64/libresolv-2.12.so
0x00007f17ecf03000 26K /lib64/libnss_dns-2.12.so
0x00007f17ee21f000 88K /lib64/libgcc_s-4.4.7-20120601.so.1
0x00007f17ee435000 250K /usr/java/jdk1.8.0_45/jre/lib/amd64/libsunec.so
0x00007f17ee97d000 90K /usr/java/jdk1.8.0_45/jre/lib/amd64/libnio.so
0x00007f17eeb8e000 113K /usr/java/jdk1.8.0_45/jre/lib/amd64/libnet.so
0x00007f17eeda5000 48K /usr/java/jdk1.8.0_45/jre/lib/amd64/libmanagement.so
0x00007f180880a000 121K /usr/java/jdk1.8.0_45/jre/lib/amd64/libzip.so
0x00007f1808a25000 64K /lib64/libnss_files-2.12.so
0x00007f1808c33000 220K /usr/java/jdk1.8.0_45/jre/lib/amd64/libjava.so
0x00007f1808e5f000 64K /usr/java/jdk1.8.0_45/jre/lib/amd64/libverify.so
0x00007f180906e000 42K /lib64/librt-2.12.so
0x00007f1809276000 582K /lib64/libm-2.12.so
0x00007f18094fa000 16440K /usr/java/jdk1.8.0_45/jre/lib/amd64/server/libjvm.so
0x00007f180a4c2000 1876K /lib64/libc-2.12.so
0x00007f180a856000 19K /lib64/libdl-2.12.so
0x00007f180aa5a000 100K /usr/java/jdk1.8.0_45/lib/amd64/jli/libjli.so
0x00007f180ac70000 139K /lib64/libpthread-2.12.so
0x00007f180ae8d000 150K /lib64/ld-2.12.so
jmap -heap 7807
Attaching to process ID 7807, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.45-b02
using thread-local object allocation.
Parallel GC with 2 thread(s)
Heap Configuration:
MinHeapFreeRatio = 0
MaxHeapFreeRatio = 100
MaxHeapSize = 1006632960 (960.0MB)
NewSize = 20971520 (20.0MB)
MaxNewSize = 335544320 (320.0MB)
OldSize = 41943040 (40.0MB)
NewRatio = 2
SurvivorRatio = 8
MetaspaceSize = 21807104 (20.796875MB)
CompressedClassSpaceSize = 1073741824 (1024.0MB)
MaxMetaspaceSize = 17592186044415 MB
G1HeapRegionSize = 0 (0.0MB)
Heap Usage:
PS Young Generation
Eden Space: ----------------------------------------伊甸园
capacity = 122683392 (117.0MB)
used = 84779408 (80.85194396972656MB)
free = 37903984 (36.14805603027344MB)
69.10422561515091% used
From Space: ----------------------------------------年轻代(幸存者乐园1)
capacity = 524288 (0.5MB)
used = 32768 (0.03125MB)
free = 491520 (0.46875MB)
6.25% used
To Space: ------------------------------------------年轻代(幸存者乐园2)
capacity = 38273024 (36.5MB)
used = 0 (0.0MB)
free = 38273024 (36.5MB)
0.0% used
PS Old Generation ----------------------------------老年代(终身颐养园)
capacity = 271581184 (259.0MB)
used = 212289648 (202.45518493652344MB)
free = 59291536 (56.54481506347656MB)
78.16802507201677% used
33603 interned Strings occupying 3737888 bytes.
jmap -histo 7807 | head -30
num #instances #bytes class name
----------------------------------------------
1: 346185 117868872 [B
2: 603520 64592800 [C
3: 145217 13940832 java.util.jar.JarFile$JarFileEntry
4: 578985 13895640 java.lang.String
5: 126460 13392344 [I
6: 200368 8014720 java.util.TreeMap$Entry
7: 247294 7913408 java.util.HashMap$Node
8: 118956 4758240 java.util.HashMap$KeyIterator
9: 21730 3842512 [Ljava.util.HashMap$Node;
10: 100798 3225536 java.io.File
11: 76437 3057480 java.util.HashMap$ValueIterator
12: 39387 2372408 [Ljava.lang.Object;
13: 32109 2054976 java.net.URL
14: 28289 2036808 java.util.regex.Pattern
15: 76439 1834536 org.apache.catalina.LifecycleEvent
16: 62955 1814072 [Ljava.lang.String;
17: 28177 1803328 java.util.regex.Matcher
18: 14724 1665208 java.lang.Class
19: 28161 1577016 [Ljava.util.regex.Pattern$GroupHead;
20: 17892 1574496 java.lang.reflect.Method
21: 76439 1534144 [Lorg.apache.catalina.Container;
22: 30096 1444608 java.util.HashMap
23: 26811 1072440 java.util.LinkedHashMap$Entry
24: 31914 1021248 java.util.concurrent.ConcurrentHashMap$Node
25: 19139 918672 org.apache.catalina.loader.ResourceEntry
26: 35760 858240 java.util.ArrayList
27: 13861 776216 java.util.concurrent.ConcurrentHashMap$ValueIterator
java类型描述符:
jmap -dump:live,format=b,file=/home/temp.hprof 7807
Dumping heap to /home/soft/0503.hprof ...
file size limit
jmap毕竟是命令工具,过于抽象,可以使用jdk自带的visualvm图形界面查看!
C:\Program Files\Java\jdk1.7.0_71\bin\jvisualvm.exe
说说jmap命令的更多相关文章
- jmap命令(Java Memory Map)(转)
JDK内置工具使用 一.javah命令(C Header and Stub File Generator) 二.jps命令(Java Virtual Machine Process Status To ...
- Linux下jmap命令查看内存使用
Linux下jmap命令查看内存使用 jmap -heap 1234(1234为进程号) jmap是JDK自带的一个工具,非常小巧方便,其支持参数如下: -heap 打印heap空间的概要 ...
- java命令--jmap命令使用(查找内存泄漏对象)
转自:https://www.cnblogs.com/kongzhongqijing/articles/3621163.html jdk安装后会自带一些小工具,jmap命令(Java Memory M ...
- 【JVM】jmap命令详解----查看JVM内存使用详情
linux获取java进程PID: https://www.cnblogs.com/sxdcgaq8080/p/10734752.html 如果命令使用过程中报错,可能解决你问题的方案: https: ...
- jvm 性能调优工具之 jmap 命令详解
jmap名称:Java Memory Map(内存映射) 官方文档:https://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jmap.html ...
- Windows下jmap命令报错问题
最近换了笔记本,新的工作环境下jmap命令居然在报错,而jps.jstat.jinfo.jstack都能正常使用,所以初步排除进程号的问题. Attaching to core 17536 fr ...
- Java的jmap命令使用详解
jmap命令简介 jmap(Java Virtual Machine Memory Map)是JDK提供的一个可以生成Java虚拟机的堆转储快照dump文件的命令行工具.除此以外,jmap命令还可以查 ...
- jmap命令详解(转)
1.命令基本概述 Jmap是一个可以输出所有内存中对象的工具,甚至可以将VM 中的heap,以二进制输出成文本.打印出某个java进程(使用pid)内存内的,所有‘对象’的情况(如:产生那些对象,及其 ...
- jmap命令详解
1.命令基本概述 Jmap是一个可以输出所有内存中对象的工具,甚至可以将VM 中的heap,以二进制输出成文本.打印出某个java进程(使用pid)内存内的,所有‘对象’的情况(如:产生那些对象,及其 ...
随机推荐
- Angular2快速入门-4.创建一个服务(创建NewsService提供数据)
上篇我们使用的数据是通过mock-news.ts中的const News[] 数组直接赋给Component 组件的,这篇我们把提供数据的部分单独封装成服务 第一.创建news.service.ts ...
- ASP.NET MVC5+EF6+EasyUI 后台管理系统(1)-前言与目录(转)
开发工具:VS2015(2012以上)+SQL2008R2以上数据库 您可以有偿获取一份最新源码联系QQ:729994997 价格 666RMB 升级后界面效果如下: 日程管理 http://ww ...
- nginx转发请求
location / { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_add ...
- rabbitMQ消息队列1
rabbitmq 消息队列 解耦 异步 优点:解决排队问题 缺点: 不能保证任务被及时的执行 应用场景:去哪儿, 同步 优点:保证任务被及时的执行 缺点:排队问题 大并发 Web nginx 1000 ...
- Set8087CW
Set8087CWThis example accesses the Floating Point Unit (FPU) control register. Try turning floating ...
- 黑暗之光 Day1
1. 设置鼠标指针图标 Build Setting -> Player Setting 2. 添加雾的效果 Window->Lighting->Settings. 3. 任意键按下事 ...
- C++异常处理(转)
引言 异常,让一个函数可以在发现自己无法处理的错误时抛出一个异常,希望它的调用者可以直接或者间接处理这个问题.而传统错误处理技术,检查到一个局部无法处理的问题时: 1.终止程序(例如atol,atoi ...
- 如何降低Unity程序的Drawcall
[如何降低Unity程序的Drawcall] Unity can combine a number of objects at runtime and draws them together with ...
- Lamber算法 & SurfaceShader自定义光照
[SurfaceShader自定义光照] 1.在pragma中添加自定义光照函数名: #pragma surface surf BasicDiffuse 2.实现自定义光照函数.下面就是Lamber ...
- IT 360服务器监控