资源简介
Memory Analyzer (MAT)
The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.
Use the Memory Analyzer to analyze productive heap dumps with hundreds of millions of objects, quickly calculate the retained sizes of objects, see who is preventing the Garbage Collector from collecting objects, run a report to automatically extract leak suspects.
代码片段和文件信息
#!/usr/bin/python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License Version 2.0
# (the “License“); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
“““
runant.py
This script is a translation of the runant.pl written by Steve Loughran.
It runs ant with/out arguments it should be quite portable (thanks to
the python os library)
This script has been tested with Python2.0/Win2K
created: 2001-04-11
author: Pierre Dittgen pierre.dittgen@criltelecom.com
Assumptions:
- the “java“ executable/script is on the command path
“““
import os os.path string sys
# Change it to 1 to get extra debug information
debug = 0
#######################################################################
# If ANT_HOME is not set default to script‘s parent directory
if os.environ.has_key(‘ANT_HOME‘):
ANT_HOME = os.environ[‘ANT_HOME‘]
else:
ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
# set ANT_LIB location
ANT_LIB = os.path.join(ANT_HOME ‘lib‘)
# set JAVACMD (check variables JAVACMD and JAVA_HOME)
JAVACMD = None
if not os.environ.has_key(‘JAVACMD‘):
if os.environ.has_key(‘JAVA_HOME‘):
if not os.path.exists(os.environ[‘JAVA_HOME‘]):
print “Warning: JAVA_HOME is not defined correctly.“
else:
JAVACMD = os.path.join(os.environ[‘JAVA_HOME‘] ‘bin‘ ‘java‘)
else:
print “Warning: JAVA_HOME not set.“
else:
JAVACMD = os.environ[‘JAVACMD‘]
if not JAVACMD:
JAVACMD = ‘java‘
launcher_jar = os.path.join(ANT_LIB ‘ant-launcher.jar‘)
if not os.path.exists(launcher_jar):
print ‘Warning: Unable to locate ant-launcher.jar. Expected to find it in %s‘ % \
ANT_LIB
# Build up standard classpath (LOCALCLASSPATH)
LOCALCLASSPATH = launcher_jar
if os.environ.has_key(‘LOCALCLASSPATH‘):
LOCALCLASSPATH += os.pathsep + os.environ[‘LOCALCLASSPATH‘]
ANT_OPTS = ““
if os.environ.has_key(‘ANT_OPTS‘):
ANT_OPTS = os.environ[‘ANT_OPTS‘]
OPTS = ““
if os.environ.has_key(‘JIKESPATH‘):
OPTS = ‘-Djikes.class.path=\“%s\“‘ % os.environ[‘JIKESPATH‘]
ANT_ARGS = ““
if os.environ.has_key(‘ANT_ARGS‘):
ANT_ARGS = os.environ[‘ANT_ARGS‘]
CLASSPATH = ““
if os.environ.has_key(‘CLASSPATH‘):
CLASSPATH = “-lib
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-05-30 05:38 mat\
目录 0 2012-05-30 05:38 mat\plugins\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\me
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\about_files\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\bin\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\etc\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\etc\checkst
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\OSGI-INF\
目录 0 2012-05-30 05:38 mat\plugins\org.apache.ant_1.8.2.v20120109-1030\OSGI-INF\l10n\
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.core.runtime.compatibility.registry_3.5.0.v20110505\
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.core.runtime.compatibility.registry_3.5.0.v20110505\me
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502\
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502\me
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.equinox.p2.publisher.eclipse_1.0.0.v20110815-1438\
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.equinox.p2.publisher.eclipse_1.0.0.v20110815-1438\me
目录 0 2012-05-30 05:38 mat\plugins\org.eclipse.equinox.p2.publisher.eclipse_1.0.0.v20110815-1438\ant_tasks\
目录 0 2012-05-30 05:38 mat\p2\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.core\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.core\cache\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.core\cache\binary\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\.settings\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\profileRegistry\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\profileRegistry\DefaultProfile.profile\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\profileRegistry\DefaultProfile.profile\.data\
目录 0 2012-05-30 05:38 mat\p2\org.eclipse.equinox.p2.engine\profileRegistry\DefaultProfile.profile\.data\org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions\
目录 0 2012-05-30 05:38 mat\features\
目录 0 2012-05-30 05:38 mat\features\org.eclipse.equinox.p2.core.feature_1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129\
目录 0 2012-05-30 05:38 mat\features\org.eclipse.equinox.p2.core.feature_1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129\me
............此处省略311个文件信息
相关资源
- MemoryAnalyzer-1.9.1.20190826-macosx.cocoa.x86
- solr4的IK中文分词器IKAnalyzer2012FF_u1.j
- OutOfMemoryError_8种典型案例分享
- Spark大数据中文分词统计Java工程源码
- IK_CAnalyzer.jar
- IK-Analyzer-6.6.2
- 几种分词工具的jar包IKAnalyzer、hanlp、
- IBM HeapAnalyzer 内存分析工具 2014最新版
- Thread Dump Analyzer - tda-bin-2.3.3
- apm metric指标体系
- 操作系统模拟内存管理实验
- MMAnalyzer 分词必导入jar包lucene-core-2
- TDA-Thread Dump Analyzer - tda-bin-2.3.3.zip
- IKAnalyzer2012_FF_hf1.jar
- IKAnalyzer3.2.8.jar
评论
共有 条评论