Design Patterns - Singleton Patterns (Detailed) See if they are the same as what you understand?
I. overview
Singleton pattern is a relatively simple and common design pattern in design pattern, but it is also a very classic high-frequency interview question. I believe there are still many people hanging here during the interview. This article mainly reviews the singleton pattern, recording its application scenarios, common writing, debugg ...
Added by roots on Tue, 08 Oct 2019 11:03:28 +0300
Data Processing Delay (GC pool) Caused by hbase GC
In the process of time maneuvering, judging by adding time stamp to the program, when inquiring HBase in batches, there will be some data inquiry time more than 8s, which is definitely unacceptable. Looking at hbase's logs, we can find the reasons. There are similar logs'GC pool'. It is speculated th ...
Added by muadzir on Fri, 04 Oct 2019 22:23:57 +0300
JUC in-depth analysis of CAS
I. overview
CAS, Compare And Swap, that is, compare and exchange. When Doug Lea is implementing synchronous components, CAS technology is used extensively and Java multi-threaded concurrent operation is implemented artificially.
The whole AQS synchronization component, Atomic atom class operation, ...
Added by mad3533 on Wed, 25 Sep 2019 11:52:13 +0300
Java 8 Virtual Machine (JVM) Memory Overflow Actual Warfare
Preface
I believe that many senior and middle-level students in JAVA will often encounter an interview question during the interview.How do you tune and locate JVM problems in your work?
In fact, if the number of users is small and your code is normal, how can we accumulate experience in this field unless we really encounter few problems relate ...
Added by techmeister on Sun, 22 Sep 2019 15:42:54 +0300
Online Problem Resolver Arthas
Online Problem Resolver Arthas
BTrace was introduced before. The use of BTrace, an online problem solving tool It's also an online problem sorter.They are all artifacts, but today this is also very powerful. It's hard to say if it's more powerful, but it's very simple to use.If you're using BTrace, you need to write the probing script in advanc ...
Added by Paul Ferrie on Wed, 18 Sep 2019 04:41:22 +0300
Selenium 2 Java data building example
When I study selenium 2 java, I have a function, which needs to test paging, 20 data per page. It's too troublesome to add one by one. The key is to add more than ten data to each page. I simply write a method to automatically add one of my high school grades. Share as follows:
//Add High School Achievements
public static void addRecord(WebDri ...
Added by hhoeksma on Mon, 16 Sep 2019 10:55:08 +0300
Java Serial 30-Method Overload, Method Recursion
1. Method overload
1. Also known as overload
2. Method overload usage scenarios
When functionality is similar, try to keep method names the same as possible (but when functionality is different or different, method names are as different as possible)
3. After what conditions are met, method overload can be constituted
(1) in the same class ...
Added by noguru on Sun, 15 Sep 2019 19:41:28 +0300
The concept of multithreading, how to create and thread state.
The concept of multithreading
Modern operating systems can perform multiple tasks, i.e. they alternate multiple tasks in turn (as our users seem to be doing multiple tasks at the same time).
process
A task in a computer is called a process. So ...
Added by Wayniac on Thu, 12 Sep 2019 16:33:34 +0300
Spring Boot Custom Start Component Development
The core of Start component development is the annotation order of automatic annotation classes, that is, annotation according to conditions.
First, let's understand the @Configuration, @Value, @Bean annotations
Take the DataSourceAutoConfiguration c ...
Added by BLINDGUY on Wed, 11 Sep 2019 06:57:36 +0300
Programmers chatting downstairs: a jvm crash investigation
Downstairs of an office building on Dawang Road.
Ape A: When we worked in our company, we ran a lot of data processing tasks in the middle of the night, and then the program often crashed.
Me: Oh? How to deal with that?
Ape A: There was some water in the architecture at that time. It said that we should adjust the ratio of "Eden" to ...
Added by hofmann777 on Mon, 09 Sep 2019 13:09:17 +0300