Copyright 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 [ option ] " executable core"
jmap [ option ] " [server-id@]remote-hostname-or-IP"
\f3 .fl jmap -J-d64 -heap pid .fl
�� - ���Υ桼�ƥ���ƥ��ϥ��ݡ��Ȥ���Ƥ��ʤ����ᡢJDK �ξ���ΥС������Ǥϻ��ѤǤ��ʤ���ǽ��������ޤ���
Windows �ץ�åȥե������ǻ��Ѳ�ǽ��ͣ��� jmap �����ϡ����ΤȤ���Ǥ���
jmap -dump:<\f2dump-options> pid
jmap -histo[:live] pid
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