The main reference to this man's article http://elf8848.iteye.com/blog/471676
Do not find after doing, the original Linux server configured a number of network cards, after setting the Djava.rmi.server.hostname property for the current server's IP, you can connect to.Please edit the tomcat/bin/catalina.sh and add the next parameter below the java_opts.java_opts= "-dcom.sun.management.jmxremote.port=port -djava.rmi.server.hostname=XX.XX.XX.XXX - Dcom.sun.management.jmxremote.ssl=false-dcom.sun.
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
in Use:jvm_bindThe above options must be set in the catalina_opts variable and set in Java_opts, and the problem will occur.# catalina_opts (Optional) Java runtime options used when the "start",# "Run" or "Debug" command is executed.# Include here and isn't in java_opts all options, that's should# only being used by Tomcat itself, not by the stop process,# the version command etc.# Examples is heap size, GC logging, JMX ports etc.# java_opts (Optional) JAVA runtime options used when any command
As you know, the JDK itself provides many virtual machine monitoring tools to monitor virtual machine service information, such as Jps,jmap,jstack. Under win7 , sometimes executing these commands will report an " Access denied " error, such as:This problem usually occurs with commands that involve process PID. Workaround: When the cmd Command box is turned on, right-click Run as Administrator , such as:The open command line will have permissions:Win7
In resin Configuration Parameter implementation jconsole Remote Monitoring JVM configuration in resin configure the following parameters, you can achieve it!
Note: Authenticate = false, SSL = false. the user name and password are required during connection!
1: Open Tomcat's catalina.sh script file with vim on the Linux server to be monitored, and add the following parameters to the first line:Java_opts= "-djava.rmi.server.hostname=120.26.204.80-dcom.sun.management.jmxremote- Dcom.sun.management.jmxremote.port=8999-dcom.sun.management.jmxremote.authenticate=true- Dcom.sun.management.jmxremote.ssl=false-dcom.sun.management.jmxremote.pwd.file=/usr/java/jdk1.6.0_02/jre/lib/management/jmxremote.password"Java.rmi.server.hostname is used to set the IP add
A few days ago wrote an article, jprofiler_ monitoring the remote Linux server tomcat process (practice), the use of jprofiler how to monitor the remote Linux tomcat process, these two days to think, in addition to monitoring the Tomcat process, Is it possible to monitor other Java processes, but to find a lap is to monitor Tomcat, so I intend to experiment with it. This article intends to package a simple
1. Sun JDK monitoring and troubleshooting tools1) The JPS:JVM process Status Tool displays all the hotspot virtual machine processes within the specified system. You can list the running virtual machine processes and display the virtual machine execution main class (the class where the main Class,main () function resides)Name, and the unique ID of the local virtual machine for these processes2) JSTAT:JVM Statistics
The JDK contains a lot of very useful tools in addition to the jar packages that are closely related to development. In addition to the command-line tools in the%java_home%\bin\ directory, several powerful visualizer tools are included. These tools can assist us in developing, debugging, and monitoring the state of virtual machines, so it is very important for developers to be familiar with these tools. The tools released with JDK1.8 are as follows:In
console, the memory monitoring curve has been at the top, the program response is slow, from the thread view, most of the threads in the GC, occupy more CPU, the final program terminated abnormally, reported to Oom. Oom occurs in uncertain time, has a short one hours, has a long 10 days and one months. Regarding the handling of the exception, determine the OOM/ML exception, be sure to pay attention to the protection of the site, you can dump heap, if
JVM interpretation (III): JVM memory region, interpretation of jvm memory region
The full name of JVM is java Virtual Machine (java Virtual Machine). JVM shields software and hardware differences related to various computer platforms.In the following days, I learned
points of Concern:
GC Log Analysis
Tuning commands
Tuning Tools
GC Log AnalysisExtract GC log part (green for young generation GC recycle; blue for full GC recycling):Through the above log analysis, psyounggen, paroldgen, Pspermgen belong to the parallel collector. Which Psyounggen represents the memory change of the younger generation before and after GC recycling; Paroldgen represents the memory change of the old age before and after GC recycling; Pspermgen represents th
The Java-language source program is compiled into a platform-independent ' bytecode program ' (. class file, 0, 12 binaries) through the Java compiler, which is then interpreted in the Java interpreter above the OS, and the JVM is the core and foundation of Java. A virtual processor between the Java compiler and the OS platform.First, the principle of the JVM1. Introduction to the JVM:The JVM is the core an
A better jvm parameter configuration and jvm introduction, better jvm parameter Introduction
Jvm parameter configuration for a good web server:
-Server // server mode-Xmx2g // maximum heap memory that can be allocated by JVM, allocated as needed-Xms2g // heap memory initia
and after gc collection. Young gc is mainly used for memory recovery of the young generation, which takes a short time. full gc will return the whole heap memory for a long time, so it is generally recommended to reduce the number of full gc times.12. Optimization commandThe Sun JDK monitoring and troubleshooting Commands include jps jstat jmap jhat jstack jinfo.1. jps, JVM Process Status Tool, displays al
JVM advanced features-2. Distribution, layout, access process, and JVM layout of jvm objects in the heap
After introducing the data area of the jvm runtime, I will explain other details about the data in the memory to see how they are created, laid out, and accessed.
I. Object Creation
1. Object allocation
There ar
[JVM] 1. jvm VM parameters-X and JVM-x
Options that begin with-X are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the JDK.Non-standard options starting with-X (cannot be guaranteed to be supported by all JVM implementations)
to free up a small space. The solution is to turn off the feature and use-xx:-usegcoverheadlimit. You need to see if you have code or a dead loop that uses large memory.Common Debugging Tools for JVMs:jconsole– Jconsole is a real-time graphical monitoring tool based on Javamanagementextensions (JMX), This tool leverages the JMX instructions built into the JVM to provide real-time performance and resource
. Make: Online a child's shoes deduced the formula is::(xmx-xmn) * (100-cmsinitiatingoccupancyfraction)/100>=xmn This formula is not very strict, in the memory of small time will affect the calculation of Xmn. For the GC parameter configuration of the actual environment see: example analysis monitoring tools see JVM Monitoring Reference: JAVA HOTSPOT VM (h
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.