jmap -dump:live,file=28_1.log 2543

jmap -dump:format=b,file=heap.bin 2543

jmap -dump:live,file=28_1.log 2543

 

C:\Program Files\Java\jdk1.7.0_45\bin\jvisualvm.exe 装入查看;

 

Hunters wrote:
I'm trying to generate heap file for about 500MB of RAM. But it alsway shows the message

file size limit

On Linux?

$ ulimit -a
$ echo -e "(Hard) file size limit (blocks): \c";ulimit -Hf
$ echo -e "(Soft) file size limit (blocks): \c";ulimit -Sf
$ sudo ulimit -f unlimited

 

VM state:at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) [0x0000fffedc04d7d0] Threads_lock - owner thread: 0x0000fffedc2f0000 [0x0000fffedc04dcd0] Heap_lock - owner thread: 0x0000fffedc050800 heap address: 0x00000006c0000000, size: 4096 MB, Compressed Oops mode: Zero based, Oop shift amount: 3 Narrow klass base: 0x0000000800000000, Narrow klass shift: 0 Compressed class space size: 1073741824 Address: 0x0000000800000000 Heap: PSYoungGen total 2016256K, used 2016050K [0x0000000740000000, 0x00000007c0000000, 0x00000007c0000000) eden space 1968128K, 100% used [0x0000000740000000,0x00000007b8200000,0x00000007b8200000) from space 48128K, 99% used [0x00000007b8200000,0x00000007bb0cca40,0x00000007bb100000) to space 68096K, 40% used [0x00000007bbd80000,0x00000007bd898080,0x00000007c0000000) ParOldGen total 2097152K, used 89316K [0x00000006c0000000, 0x0000000740000000, 0x0000000740000000) object space 2097152K, 4% used [0x00000006c0000000,0x00000006c57390f8,0x0000000740000000) Metaspace used 126298K, capacity 129922K, committed 130176K, reserved 1163264K class space used 15766K, capacity 16411K, committed 16512K, reserved 1048576K Card table byte_map: [0x0000fffec5e50000,0x0000fffec6660000] byte_map_base: 0x0000fffec2850000 Marking Bits: (ParMarkBitMap*) 0x0000fffee2771c78 Begin Bits: [0x0000fffe50000000, 0x0000fffe54000000) End Bits: [0x0000fffe54000000, 0x0000fffe58000000) Polling page: 0x0000fffee2a00000 CodeCache: size=131072Kb used=56066Kb max_used=56225Kb free=75005Kb bounds [0x0000fffec72c0000, 0x0000fffecaa60000, 0x0000fffecf2c0000] total_blobs=14878 nmethods=14094 adapters=692 compilation: enabled 如何优化
最新发布
04-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值