Seventh Week study Summary teaching contents study 12th chapter Java multithreading mechanism
Processes and Threads
A process is a dynamic execution of a program that corresponds to a complete process from code loading to execution to
A virtual machine in the same host computer, when all or part of it is running, will justifiably compete for host CPU resources.
How to balance the resource utilization of host, Hyper-v3 gives three kinds of solutions:
1. CPU resources allocated
Details about CMS garbage collection mechanism and cms garbage collection
Originality is not easy. It cannot be reproduced without permission ~~~
In general, the execution process of CMS can be divided into the following stages:
3.1 initial tag
C # is not my director, but I may want to use some underlying tools to analyze the exception handling performance of C.Here I have no intention to discuss the exceptions, good or bad, or when to use exceptions or not to use them. The exception
Why is the server so slow? CPU, RAM, and disk I/O resources are exhausted, and ram is used up
Machine running is slow because it consumes too many system-specific resources. The main resources of the system include CPU, RAM, disk I/O, and network.
DreamHost as a shared host, usually has some restrictions on the user's CPU utilization, if some users of the site use too much CPU resources and affect the performance of the server, then this user account may be disabled, so Users using the
at the beginning of Java programming, we were exposed to Java threads, and then the code was summed up, but now it seems a bit flawed, and there is no thread to explain the origin of the problem, but simply describes what is the process, what is the
1.0 performance monitoring
Performance Tuning is a process of finding system bottlenecks and adjusting the operating system to eliminate these bottlenecks. Many System Administrators think that performance tuning is like cooking with recipes: simply
LockSupport and aqslocksupport
LockSupport is described in the JDK source code as follows: the basics of building locks and other synchronization classesThread BlockingPrimitive to build a more advanced synchronization tool set. The park/unpark
In fact, when the user volume of Android projects is particularly large, some small problems will be magnified, the ANR problem is a typical example.Some of the ANR problems will only occur in the user's actual use of the situation, when the system
The concept of process overview process is not present at the earliest. In the present case, it is a single-process operating system. But the people at that time didn't think so. Is it not normal for a software that runs on a board to run a pipeline?
If your Linux server suddenly has a sudden increase in load, warning text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time? Look at the Netflix performance Engineering team's blog post to
If your Linux server suddenly has a sudden increase in load, alarm text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time? Look at the Netflix performance Engineering team's blog post to diagnose
Key 10 commands to check Linux server performanceOverviewYou can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
The pros and cons of single-threaded and multi-threaded
The advantages of multi-threaded processingSynchronization applications are easier to develop, but are typically less efficient than multithreaded applications because they need to be completed
In the opening of some games or large software, CPU usage is very easy to reach 100%, causing the computer to run slowly, and even the card machine, suspended animation, blue screen and other conditions, then the CPU utilization rate of 100% is what
Hadoop, HBase, Hive, zookeeper default port description
Component
Daemon
Port
Configuration
Description
Hdfs
DataNode
50010
Dfs.datanode.address
Datanode service port for data transfer
You can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
IOSTAT-XZ 1
Free-m
Sar-n DEV 1
Sar-n tcp,etcp 1
Original is not easy, without permission, not reproduced ~ ~ ~
What is a CMS?Concurrent Mark Sweep.See the name to know, CMS is a concurrency, using the tag-purge algorithm GC.CMS is a GC that is recycled for the old age.
What is the
JAVA thread control, java thread
You can use the thread method to perform basic thread control. Besides the known start, run, and sleep methods, there are also isAlive, currentThread, and interrupt methods.
IsAlive: This method is used to test
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.