JDK1.6 garbage Collection related parameters
Parameters
Describe
Useserialgc
Default value of the virtual machine running in client mode, after this switch is turned on, the collector combination of
1. Node detachment caused by GC
Because the GC will cause the JVM to stop working, if a node has too long GC time, Master Ping3 (Zen Discovery The default ping failure Retries 3 times) will remove the node from the cluster, causing the index to be
Use 9.2.x. Because this version is JDK7, 9.3 corresponds to the JDK8.Running jetty in embedded mode means putting an HTTP module into your application instead of applying it to an HTTP server. 1 steps to develop an embedded server
1 Create a server
tuning needs to focus on several aspects of memory tuning CPU using tuning lock competitive tuning I/O Tuning Fundamentals:
The number of objects to be transferred to the old age is minimized. Reduce the execution time of full GC. The goal is to
first, the memory model
JVM Memory Area
1.1 Thread Private Zone
1.Program Counter Register (program counter). A small amount of memory space that acts as the line number indicator of the byte code that is being executed by the current thread.
2.
See: http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt1061. Data area of Java Virtual runtime2. Common Memory Area adjustment parameters-XMS: The initial heap size, default is the physical memory of 1/64 (-XMX: Maximum heap size, default
OverviewJstat is a tool that you can use to observe information about the runtime of a Java application, which is very powerful and allows you to view the details of the heap information.Basic usageThe basic usage syntax for the JSTAT command is as
DK comes with VM analysis tools JPS, jstat, jmap, jconsole
I. Overview
Several tools in Sun's JDK are very useful. Adhering to the principle of free and commercial use. The following is a brief introduction to these tools. (Note: all the tools in
This article is suitable for users who have some knowledge about Tomcat and JVM.
Common built-in variables:
Catalina_base // used to set the storage location of files that can have write permissions or custom parts. In applicable scenarios, you need
Parameters
Description
-xx:+useserialgc
The JVM runs the default value in client mode, and after this switch is turned on, memory recycling is performed using the collector combination of Serial + Serial old
DirectoryTools usedGC performance countersWindows performance countersConfirm OOM exceptions in the hosting ProcessDetermine the cause of OOM exceptionMeasure the size of a managed heap.What if the object is retained?Will fragments on the hosting
JAVA Garbage Collector Overview
1. Combination of garbage collectors
There are a total of 7 JAVA garbage collectors, minus G1, which has not yet been officially used in a large scale. There are also 6, 3 in the new generation and 3 in the old
Jstat command, jstat commandOverview
Jstat is a tool that can be used to observe information related to java application programs. It is very powerful and allows you to view the details of heap information.Basic usage
The basic syntax of the jstat
1.1 Purpose of writingIn order to facilitate the subsequent discovery of the process of suspended animation can be normal analysis and the first time to keep the scene snapshot.1.2 Writing the backgroundRecently the server discovered that Tomcat's
Parameters
Description
Useserialgc
Default value of the virtual machine running in client mode, when this switch is turned on, use serial +Serial old collector combination for memory reclamation
Useparnewgc
This is a creation in
Article, where the information may have evolved or changed.
English original link: https://blog.twitch.tv/gos-march-to-low-latency-gc-a6fa96f06eb7#.lrmfby2xs
Below we will introduce the history of GC time-consuming evolution
The recent time is tense, must write the thing also has many, can only think a bit to write a point. About the GC, the information on the Internet too much, before a system tuning time and review, find a few widely circulated information, most of
A major feature of the Java language is the ability to automate garbage collection without the developer focusing too much on system resources, such as the release of memory resources. Automatic garbage collection, while greatly reducing the
First, IntroductionThis article documents the solution to the HBase random outage event that plagued the team for two weeks, and reviews the JVM GC Tuning Basics for your reference. Welcome reprint, please specify Source: http://blog.csdn.net/u010967
1 Problem DescriptionA service has two machines, every few days will alarm load high, a start to see the detection of GC time jitter is very large, thought to have occurred FULLGC caused the lag without attention, and then log on to the online
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.