Jvm performance monitoring and common tools, common tools for jvm monitoring
Common JDK command line tools
Jps: jps [options] [hostid].-q only displays the jvmid,-m parameter passed to main class,-l class full name, and-v jvm
Chapter 8 JVM performance monitoring and troubleshooting tools (2), jvm troubleshooting
Note: This blog is mainly recorded in "deep understanding of Java Virtual Machine (version 2)"
Note: For details about JVM performance
The JDK itself provides many convenient JVM performance tuning monitoring tools, in addition to the integrated VISUALVM and Jconsole, there are JPS, Jstack, Jmap, Jhat, Jstat and other small tools, this blog hope to play a useful, Let's start to understand the common tools for tuning JVM performance.In real-world enter
Overview
When the system bugs need to locate the problem, knowledge, experience is the key foundation, the data is the basis, the tool is the use of knowledge processing data means. The data mentioned here include: Run log, exception stack, GC log, thread snapshot (threaddump/javacore file), heap dump Snapshot (heapdump/hprof file), etc. Using the appropriate virtual machine monitoring and analysis tools can accelerate our ability to analyze data and
.lichengbing.cn:linux-node1.lichengbing.cn:unknown ErrorAdd host name resolution resolution[Email protected] logs]# cat/etc/hosts172.16.2.150 linux-node1.lichengbing.cn6) At this point we can also use the Windowsjava tool Jconsole test (pre-installed Java)650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M00/86/FF/wKioL1fQ8JOC61WuAABvPe9sE7E131.png " alt= "Wkiol1fq8joc61wuaabvpe9se7e131.png"/>7) Add hosts and templates to Zabbix to start
In addition to the integrated VISUALVM and Jconsole, the JDK itself provides performance tuning monitoring tools such as JPS, Jstack, Jmap, Jhat, and Jstat.In Java development, we sometimes encounter the following problems:OutOfMemoryError, Low memoryMemory leaksThread deadlockLock contention (lock contention)The Java process consumes too much CPU......These problems may be overlooked by many people in thei
item.bin)The screen displays "Server is ready." Prompt, the user types http://localhost:7000/in the browser to see the results of the analysis, as shown in: Jstack:java Stack Trace Tool the Jstack (Stack Trace for Java) command is used to generate a thread snapshot of the current moment of the virtual machine (commonly referred to as a threaddump or Javacore file). A thread snapshot is a collection of method stacks that each thread in the current virtual machine is executing, and the prim
jvm--performance monitoring and fault handling toolsHotspot virtual machines provide a number of virtual machine runtime debugging tools that allow developers to monitor and optimize the performance of virtual machines and applications while the app is running.JPS:JVM Process Status ToolDisplays all the hotspot virt
large, you may need to add-j-xmx512m This parameter specifies the maximum heap memory, which is jhat-j-xmx512m-port9998/tmp/dump.dat. Then you can enter the host address in the browser: 9998 viewed:4. Jstat (JVM Statistical monitoring tool)Jstat [generaloption | outputoptions vmid[interval[s|ms] [count]]Vmid is the Java Virtual machine ID, which is generally the process ID on the Linux/unix system. Interva
The JDK provides us with a range of JVM performance monitoring and troubleshooting tools, which are documented here based on learning progress. Easy to read later1.JPS Virtual Machine Process ToolSimilar to the PS command in Linux systems for viewing virtual machine processes, the following features are commonly usedJps-l Show virtual machine process ID and proce
1. Open JprofilerThe default is to start the Quick window "or use the menu Session→start Center" to openLocal Java programs are monitored here, so theMain interface2. Viewing the Monitoring interfaceYou can then view the amount of Instance count instance data and size, etc.You can also view the heap and other information by mailSee Example: http://www.cnblogs.com/langtianya/p/3172180.htmljava-jprofiler-performance
Open Source Server monitoring tool-javamelodyJavamelody It can monitor Java or Java EE application servers and graphically display: Java memory and Java CPU usage, number of user sessions, number of JDBC connections, and HTTP requests, SQL requests, The number of execution of JSP pages and business interface methods (EJB3, Spring, Guice), average execution time, error percentage, and so on. Charts can be viewed by day, week, month, year, or custom tim
, generate a memory dump snapshot (heapdump file) of the virtual machine.5) JHAT:JVM Heap Dump Browser, which parses the Headdump file, establishes a http/html server that allows the user to view the results of the analysis on the browser6) Jstack:stack Trace for Java to generate a thread snapshot of the current moment of the virtual machine2. Visualization Tools1. Jconsle2. JVISULAVMRemote connection needs to be set for Java opt to use, see: http://www.cnblogs.com/Jtianlin/p/5021540.htmlJVM (4)
)Three use Jconsole monitor the running state1. We plan to set the total of the heap too small to 20M, the new generation and the old age of 10M. Because Survivor and Eden have a space ratio of 1:8 by default, Eden is about 8m,2 survivor each 1M. The following verifies that Jconsole's monitoring is consistent with our plans.(1) Total size of the heap:(2) Old age Size:(3) Eden Size:(4) Survivor size:Result: The expected plan was met.2. Other informatio
JDK itself comes with a lot of practical tools. The following are commonly used:1. JPs: displays all Virtual Machine Processes-Q: only ID numbers are listed.-M: ID, primary class, and parameters passed to the primary class-L: ID and full name of the main class-V: ID, primary class, and complete VM startup parameters
2. jstat: Virtual Machine statistics monitoring Reference: http://blog.163.com/yangshuo_qq/blog/static/2554680201272871350110/Jstat-GC
JVM monitoring tools-Introduction to several common tools and jvm monitoring-common toolsIntroduction to JVM monitoring tools
Jdk provides a powerful GUI-based jvm
When we found in the IDE console:The value of the persistent generation set for the JVM is too small, you need to open the window->preferences->java->installed JRE in Eclispe, click the Edit button on the right, and the default VM Arguments option, increase the value of-xx:permsize and-xx:maxpermsize.If you understand JVM performance tuning, you can learn about t
Java applications are running on the JVM, but do you know anything about JVM technology? This article (the first part of the series) describes how classic Java virtual machines work, such as: the pros and cons of Java authoring once, Cross-platform engines, garbage collection basics, classic GC algorithms, and compiler optimizations. The following article will talk about
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.