Deep understanding of JVM - fault diagnosis tools
jps (JVM Process Status Tool): displays all HotSpot virtual machine processes in the specified system
jstat (JVM Statistics Monitoring Tool): users collect all aspects of the operation data of the HotSpot virtual machine
jinfo (Configuration Info for Java): view and adjust parameters of virtual machine in real time, and integrate into jhsdb ...
Posted on Tue, 14 Jan 2020 23:49:41 -0500 by komquat
Illustration of kubernetes scheduler ScheduleAlgorithm core implementation learning framework design
ScheduleAlgorithm is an interface responsible for selecting a suitable node for pod. This section mainly analyzes how to implement an extensible and configurable general algorithm framework to achieve general scheduling, how to uniformly register and build algorithms, how to transfer metadata and scheduling process context data
1. Design consid ...
Posted on Tue, 14 Jan 2020 22:08:16 -0500 by mortal991
JVM-Memory Structure-Method Area
Note: Although the method area is discussed in this article, knowledge about Class file structure and Class loading is also involved in order to answer some questions.
java7 and before, method area implementations were permanent, and after java8, method area implementations were Metaspace
5.1 D ...
Posted on Tue, 14 Jan 2020 20:51:50 -0500 by Gho
ByteBuddy manipulating Java bytes example: automatically removing spaces on both sides of a string
I learned a little bit about ByteBuddy today.
Its official warehouse address is: https://github.com/raphw/byte-buddy.
Official description: Runtime code generation for the Java virtual machine.
Anyone who has written Java knows that Java only supports interface based dynamic proxies. If your class does not implement an interface, and yo ...
Posted on Tue, 14 Jan 2020 06:07:37 -0500 by FidelGonzales
11 of scala programming learning - set operation
11.1 mapping map operation of set elements
11.1.1 look at a real demand
Requirement: Please * 2 all elements in List(3,5,7), and return the result in a new collection, that is, return a new List(6,10,14). Please write a program to implement it
11.1.2 using traditional methods to solve
//Traditional wri ...
Posted on Tue, 14 Jan 2020 03:33:57 -0500 by ashok_bam
Getting started with Netty
Introduction to Netty
Netty introduction
Netty is a widely used Java network programming framework.
Characteristics of Netty technology and method
Design
Unified interface for multiple transport types - blocking and non blocking
Simple but more powerful threading model
True connectionless datagram socket support
Link logic supports reuse
Ea ...
Posted on Tue, 14 Jan 2020 02:09:49 -0500 by colesw
PHP regular expression and form registration case
A regular expression is a string with a specific pattern to match text
Preg match
$pattern = '/php/';
$subject = "php It's the best programming language, php No one!";
$result = preg_match($pattern,$subject);
if($result){
echo "<h1>Matching success</h1>";
}else{
echo "<h1>Match unsuccessful</h1>";
}
Preg? Mat ...
Posted on Mon, 13 Jan 2020 23:25:54 -0500 by paladaxar
Diagram kubernetes scheduler cache core source implementation
SchedulerCache is the core data structure responsible for local data caching in kubernetes scheduler. It implements the Cache interface, which stores the data obtained from apiserver, provides the Scheduler with the information of node, and then the final node node node of pod is decided by the scheduling algorithm. The Snapshot and node scatte ...
Posted on Mon, 13 Jan 2020 22:18:39 -0500 by ShopMAster
JS basic part 1: three ways to embed HTML into JS
Article directory
The first way: window.alert
The second way: the way of script block
The third way: js script file, src = path
Introduction to JavaScript:
1. Functions to be realized:
Users click the following button to pop up a message box. JS is a dynamic and interactive browser.2.JS is an even ...
Posted on Mon, 13 Jan 2020 21:50:24 -0500 by learnphp1
datawhale algorithm and data structure day4-queue
datawhale algorithm and data structure (above) day4-queue
Theoretical part
1. Queues
Definition
Instead of a stack, a queue is a linear first-in-first-out (FIFO).Insertions are allowed only at one end of the table and deletions of elements at the other end.In a queue, the end that allows insertio ...
Posted on Mon, 13 Jan 2020 19:29:03 -0500 by eagleweb