Seven Ways of Writing Singleton Patterns

Article transferred from public account Invincible Baron | If anyone asks you about your singleton pattern again, throw him these seven ways of writing! The singleton design pattern is one of the most basic and commonly used design patterns among the 23 design patterns. It is also one of the high freq ...

Posted by Begbie on Mon, 23 Sep 2019 03:35:02 -0700

Use of SpringBoot Admin

Spring Boot Actuator provides the monitoring of a single Spring Boot application. The information includes application status, memory, threads, stacks, etc. It comprehensively monitors the whole life cycle of Spring Boot application. But there are also some problems in such monitoring: first, all monitoring needs to call a fixed interface t ...

Posted by sac0o01 on Mon, 23 Sep 2019 01:56:34 -0700

SpringBoot Actuator Monitoring Application

The characteristics of micro-services determine that the deployment of functional modules is distributed. Most of the functional modules run on different machines and interact with each other through service invocation. Front-end and back-end business flows will be processed and transmitted by many micro-services. How to locate anomalies quick ...

Posted by lisa3711 on Mon, 23 Sep 2019 00:52:06 -0700

Deep jvm Kernel-Principle, Diagnosis and Optimization-3. Common jvm configuration parameters

1. Common configuration parameters for jvm In fact, from and to are just logical concepts. Physically, the new generation is allocating the memory of the object + the memory space of the object to be copied -XX:+PrintGCDetails -XX:+PrintGCDetails This is printed every gc, but the detailed heap information is not printed until after the prog ...

Posted by dstantdog3 on Sun, 22 Sep 2019 19:51:15 -0700

Deep jvm Kernel-Principle, Diagnostics and Optimization-1. Initial jvm

1. Initial jvm For complements, briefly describe the benefits of complements.The complement given to -99, -105, 205 integers is calculated. A: Briefly describe the benefits of the complement: In people's computing concepts, there is no positive or negative division between zero and the treatment of uniform zero Unify additions and subtract ...

Posted by Ben Cleary on Sat, 21 Sep 2019 17:51:03 -0700

New features of Java 8 are carefully organized

Preface More and more projects have been used Java 8 No doubt, Java 8 It is the most important version of Java since Java 5 (released in 2004). This version contains more than a dozen new features, including languages, compilers, libraries, tools, and JVM. In this article, we will learn about these new features and illustrate with practical exa ...

Posted by bamse on Sat, 21 Sep 2019 08:14:57 -0700

The concept of threads

Article directory Introduction to Multithreading Operating systems (Windows, macOS, Linux) can now perform multiple tasks. A task is a process. The relationship between processes and threads The Method of Realizing Multitask Multiprocess VS Multithreading Java language has built-in multithreading su ...

Posted by simrx11 on Thu, 19 Sep 2019 03:26:14 -0700

A Brief Talk on prototype Prototype Model

I. Introduction of Prototype Patterns Prototype pattern is an object creation pattern. It uses the method of replicating prototype objects to create instances of objects. Instances created using prototype patterns have the same data as prototypes. The characteristics of the prototype model: 1. Create the target object by the prototype ob ...

Posted by desmortes on Wed, 18 Sep 2019 00:52:27 -0700

A Brief Analysis of ThreadLocal Source Code by Ali Architect: Use of Golden Section Number

Links to the original text: https://www.jianshu.com/p/48eca67fb790 I. premise A recently touched project is compatible with old and new systems, and ultimately uses ThreadLocal (actually Inheritable ThreadLocal) to obtain variables shared ...

Posted by the-hardy-kid on Mon, 16 Sep 2019 01:33:15 -0700

Error-reporting of jmap commands in Windows

Recently, I changed my notebook. In the new working environment, the jmap command is reporting errors, while jps, jstat, jinfo and jstack can be used normally, so the problem of process number is preliminarily eliminated. Attaching to core 17536 from executable heap, please wait... Error attaching to core file: Windbg Error: OpenDumpFile failed ...

Posted by hd_webdev on Sun, 15 Sep 2019 22:51:42 -0700