---
title: "profiling java applications with jvisualvm"
author: "yangyi"
date: "2011-09-29T18:52:29Z"
tags: []
categories: ["编程语言"]
slug: "profiling-java-applications-with-jvisualvm"
draft: false
lastmod: "2011-09-29T18:58:12Z"
id: 1183439
url: "https://yangyi.iteye.com/blog/1183439"
---

1) Open jvisualvm, which is bundled with the standard javase 6 release. It is placed under $JAVA_HOME/bin, implemented with the Netbeans framework.
2) Click on the samples tag. Here we have 2 factors for profiling, CPU and Memory.
3) Click Settings, choose "include only packages" and setup the app packages you want to monitor, then click CPU.
4) Make operations on the GUI or client interface, you will the sample CPU time from the jvisualvm window.
![](http://dl.iteye.com/upload/attachment/562707/68dc2eb1-96b5-3098-8b82-4f524d4efd0e.gif)