New feature of Java 8 - Lambda expression

Introduction to new features of Java 8 1. Faster 2. Less code (new grammatical Lambda expressions added) 3. Powerful Stream API 4. Facilitate Parallelism 5. Optional to minimize null pointer exceptions   II. Lambda expression 1. Why use Lambda expression Lambda is an anonymous function. We can interpret Lambda expression as a piece of ...

Posted by rdub on Wed, 24 Jul 2019 00:59:45 -0700

JVM tuning exploring physical memory return mechanism of CMS and G1

Preface: The company has an asset statistics system, which is very low in usage, but requires fast query speed in use. Therefore, we want to make some caches stored in memory, not used for a long time, persistent to disk, and recycle garbage, return physical memory to the operating system, so as to save valuable resources to other businesses. S ...

Posted by timbr8ks on Mon, 22 Jul 2019 05:47:03 -0700

What is Java multithreading?

Phase 5 Multithreading Preface: A scene: Weekend, with no female tickets to go to the movies, whether it is live tickets or mobile phone tickets, there is still a seat in the last second. After a moment of delay, it shows that the seat has been unable to be selected. If you don't pay attention to it, there will be no seat. The tickets of the c ...

Posted by dull1554 on Wed, 17 Jul 2019 19:42:38 -0700

jmap: Java's own performance monitoring tool

This article continues with the introduction of Java's own performance monitoring tools. This article uses jmap tools to play with them.~ jmap (Java Memory Map) command can generate heap snapshots and object statistics of Java applications, analyze the generated heap snapshots, analyze the memory occupied by objects in the heap, check large ...

Posted by vivekjain on Tue, 16 Jul 2019 16:29:21 -0700

The Role and Method of Logging

Recent research logs in search of things, see good articles on the record. Original address: http://www.infoq.com/cn/articles/why-and-how-log Logging in programs generally has two purposes: Troubleshooting and displaying the running state of programs. A good way of logging can provide us with enough evidence to locate problems. Loggin ...

Posted by Jaspal on Thu, 11 Jul 2019 18:02:43 -0700

JVM parameter configuration

Virtual Machine Parameters In the process of running a virtual machine, if it can track the running state of the system, it will be helpful to troubleshoot the problem. For this reason, the virtual machine provides some parameters to track the state of the system. If the given parameters are used to execute a java virtual machine, the relevan ...

Posted by tonga on Wed, 10 Jul 2019 14:17:49 -0700

JStorm Source Reading Series - 02 - Topology Assign for Topology Assign

Written in the foregoing, the author first read the source code of the framework, so there may be some misunderstanding errors or no detailed explanation. If you find errors in the reading process, you are welcome to comment and point out in the article below. The article will be updated in succession. You can pay attention to it or collect it. ...

Posted by veroaero on Mon, 08 Jul 2019 17:07:53 -0700

Android Thermal Repair Technology: Analysis of QQ Space Patch Scheme (1)

In the traditional app development mode, online bugs occur, which can only be repaired after users manually update the new version. As app's business becomes more and more complex, the amount of code explosively grows, and the probability of bugs increases. If the online bugs are repaired only by distribution, the longer coverage period of the ...

Posted by buzzed_man on Sat, 06 Jul 2019 11:59:05 -0700

Chapter 2 Concurrent Access to Objects and Variables

Chapter 2 Concurrent Access to Objects and Variables Label: Java Multithread Programming <Java Multithread Programming Core Technology > Personal Notes Chapter 2 Concurrent Access to Objects and Variables synchronized synchronization method The variable in the method is thread-safe Instance variable non-thread security Mult ...

Posted by harsh00008 on Wed, 03 Jul 2019 17:22:32 -0700

ClassLoader class loader

Let's start with an example:public class ClassLoaderTest{     public static void main(String[] args) {         ClassLoader cl = ClassLoaderTest.class.getClassLoader();         System.out.println(c ...

Posted by jstarkweather on Wed, 03 Jul 2019 14:15:50 -0700