jmap.1 revision 0
t

Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).

You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.


jmap 1 "2006 ǯ 9 �� 4 ��" "Java SE 6" "�桼�������ޥ��"
̾��
jmap - ����ޥå�
����
jmap [ option ] " pid"

jmap [ option ] " executable core"

jmap [ option ] " [server-id@]remote-hostname-or-IP"

�ѥ�᡼��
option ���ץ�������ߤ���¾Ū�Ǥ������ץ�������Ѥ�����ϡ����ޥ��̾��ľ��˻��ꤹ��ɬ�פ�����ޤ��� pid ����ޥåפ�ɽ������ץ?�� ID���ץ?���� Java �ץ?���Ǥʤ���Фʤ�ޤ��󡣥ޥ����Ǽ¹Ԥ��Ƥ��� Java �ץ?���Υꥹ�Ȥ��������ˤϡ� jps ����Ѥ��ޤ��� executable ��������פ��������줿 Java �¹Բ�ǽ�ե����롣 core ����ޥåפ�ɽ�����륳���ե����롣 remote-hostname-or-IP ��⡼�ȥǥХå������� ( jsadebugd �򻲾�) �Υۥ���̾�ޤ��� IP ���ɥ쥹�� server-id Ʊ����⡼�ȥۥ��Ⱦ��ʣ���ΥǥХå������Ф��¹Ԥ��Ƥ����硢���ץ����ΰ�� ID��
��ǽ����
jmap �ϡ����ꤵ�줿�ץ?���ޤ��ϥ����ե�����ޤ��ϥ�⡼�ȥǥХå������ФΡ���ͭ���֥������ȥ���ޥåפޤ��ϥҡ��ץ���ξܺ٤�ɽ�����ޤ��� ���ꤵ�줿�ץ?���� 64 �ӥå� VM ��Ǽ¹Ԥ���Ƥ����硢\f2-J-d64 ���ץ�������ꤷ�ʤ���Фʤ�ʤ���礬����ޤ���������򼨤��ޤ���

\f3
.fl
jmap -J-d64 -heap pid
.fl

�� - ���Υ桼�ƥ���ƥ��ϥ��ݡ��Ȥ���Ƥ��ʤ����ᡢJDK �ξ���ΥС������Ǥϻ��ѤǤ��ʤ���ǽ��������ޤ���

Windows �ץ�åȥե������ǻ��Ѳ�ǽ��ͣ��� jmap �����ϡ����ΤȤ���Ǥ���

jmap -dump:<\f2dump-options> pid

�����

jmap -histo[:live] pid

���ץ����
" <no option>" ���ץ���󤬻��Ѥ���ʤ��ä���硢 jmap �϶�ͭ���֥������ȥޥåԥ󥰤�ɽ�����ޤ����������å� VM ���ɤ߹��ޤ줿�ƶ�ͭ���֥������ȤˤĤ��ơ����ϥ��ɥ쥹���ޥåԥ󥰤Υ�����������Ӷ�ͭ���֥������ȥե�����Υե�ѥ���ɽ������ޤ�������ϡ�Solaris �� pmap �桼�ƥ���ƥ���Ʊ�ͤǤ���

3 -dump:[live,]format=b,file=<filename> Java �ҡ��פ� hprof �Х��ʥ������ filename �˥���פ��ޤ���\f2live ���֥��ץ����Ͼ�ά��ǽ�Ǥ������줬���ꤵ�줿��硢�ҡ��������¸��Υ��֥������ȤΤߤ�����פ���ޤ����ҡ��ץ���פ򻲾Ȥ���ˤϡ��������줿�ե������ jhat (Java Heap Analysis Tool) ��Ȥä��ɤ߼��ޤ���

3 -finalizerinfo �ե����ʥ饤�����ԤäƤ��륪�֥������Ȥ˴ؤ���������Ϥ��ޤ��� -heap �ҡ��פΥ��ޥ��ɽ�����ޤ������Ѥ��줿 GC ���르�ꥺ�ࡢ�ҡ��׹�����������������ϤΥҡ��׻���Ψ��ɽ������ޤ��� -histo[:live] �ҡ��פΥҥ��ȥ�����ɽ�����ޤ����� Java ���饹�ˤĤ��ơ����֥������ȿ������ꥵ�����ʥХ��ȿ��ˡ�����Ӵ����������饹̾��ɽ������ޤ���VM �������饹̾�����ˤ� '*' ��ɽ������ޤ���\f2live ���֥��ץ���󤬻��ꤵ�줿��硢��¸��Υ��֥������ȤΤߤ�������Ȥ���ޤ��� -permstat Java �ҡ��פα�³Ū�����Υ��饹�?�����Ϥ���פ�ɽ�����ޤ����ƥ��饹�?���ˤĤ��ơ�̾������ư�������ɥ쥹���ƥ��饹�?����������ɤ߹��ޤ줿���饹�Υ�������ɽ������ޤ��� ����ˡ�intern ���줿ʸ����ο��ȥ���������Ϥ���ޤ���

3 -F ���� (Force)��pid ������ʤ����ˡ�jmap -dump �ޤ��� jmap -histo ���ץ����ȤȤ�˻��Ѥ��ޤ������Υ⡼�ɤǤϡ�\f2live ���֥��ץ����ϥ��ݡ��Ȥ���ޤ��� -h �إ�ץ�å�������ɽ�����ޤ��� -help �إ�ץ�å�������ɽ�����ޤ���

3 -J<flag> jmap ���¹Ԥ���Ƥ��� Java ���ۥޥ���� <flag> ���Ϥ��ޤ���

��Ϣ����

2 * pmap (1)

2 * jhat

2 * jps

2 * jsadebugd