Performance optimization cases
1. Performance optimization case 1: adjusting heap size to improve service throughput
1.1. Modify tomcat JVM configuration
In the production environment, Tomcat does not recommend configuring variables directly in catalina.sh, but in setenv.sh under the same level directory (bin directory) as Catalina.
1.2 initial configuration
Writ ...
Posted by skattabrain on Wed, 24 Nov 2021 20:55:20 -0800
Java | teach you to implement a lottery system (Java version)
Source: blog.csdn.net/wang258533488/article/details/78901303
1 Overview
In project development, there are often the needs of marketing activities such as lucky draw, such as integral turntable, scratch music, slot machine and so on. In fact, the implementation method of the background is the same. This paper introduces a common implementation ...
Posted by Rizla on Wed, 24 Nov 2021 20:38:29 -0800
Best practices for building container images based on Dockerfile
1. Background overview2. Why is the image so large 2.1 the basic image is too large2.2 the basic image is too large and cannot be found2.3. Git directory (unnecessary directory)2.4 Dockerfile has other problems3. How to optimize Dockerfile 3.1 where to start 3.1.1 take a chestnut3.1.2 Copy on write3.1.3 UnionFS3.2 scheme 3.2.1 reduce the numbe ...
Posted by Rayne on Wed, 24 Nov 2021 20:28:06 -0800
[JVM source code analysis] the template interpreter interprets and executes Java bytecode instructions
This article is compiled and published by jiumo (Ma Zhi), chief lecturer of HeapDump performance community
Chapter 17 - x86-64 register
The system of machine language that can be interpreted by different CPUs is called ISA (Instruction Set Architecture), or instruction set. Intel calls the 32-bit CPU Instruction Set Architecture among x86 seri ...
Posted by sigmon on Wed, 24 Nov 2021 20:03:40 -0800
Redis thread model
Past and present life of Redis thread model https://mp.weixin.qq.com/s/MwG9GpnTVbma69PiOHHvgw
Past and present life of Redis thread model
original Wang Shaodong vivo Internet technology 2021-11-24
17 contents included in the topic # database
Author: vivo Internet server team - Wang Shaodong
1, Overview
As we all know, ...
Posted by robtbs on Wed, 24 Nov 2021 19:48:44 -0800
Practice | how does Google I/O application adapt to large screen UI?
From May 18 to 20, we held Google's annual conference in the form of full online I/O Developer Conference , including 112 conferences, 151 codelabs, 79 developer gatherings, 29 seminars, and many exciting releases. Although this year's conference did not release a new version of Google I/O application, we still updated the code base to show s ...
Posted by RobertPaul on Wed, 24 Nov 2021 19:42:35 -0800
Java 23 design patterns -- policy pattern (behavior design pattern)
Strategy mode
brief introduction
The policy pattern is the packaging of the algorithm. It separates the responsibility of using the algorithm from the algorithm itself and delegates it to different objects for management. Policy patterns usually package a series of algorithms into a series of policy classes as subclasses of an abstract policy ...
Posted by nysmenu on Wed, 24 Nov 2021 19:32:33 -0800
Develop a DDD scaffold based on IDEA Plugin
Author: Xiao Fu GeBlog: https://bugstack.cnPrecipitate, share and grow, so that you and others can gain something! 😄Recently, I am interested in expanding various functions in combination with the development capability of IDEA Plugin. Based on this, different cases are used to explore the IDEA Plugin plug-in development technology. I hope thi ...
Posted by Labbat on Wed, 24 Nov 2021 19:29:08 -0800
My girlfriend was not at home in the middle of the night and stole her whereabouts in Python. What was the result?
Target scene
Sometimes my girlfriend plays outside alone and asks where she is, but she doesn't tell me. However, you want to know the "location" of your girlfriend. What should you do?
In fact, you can do this routine for your girlfriend to pretend that you are bored at home. You can help her repair the map and ask her to send ...
Posted by Aeiri on Wed, 24 Nov 2021 19:27:40 -0800
User behavior analysis of python based on Taobao historical data
If you feel that the article is well written, if you want data in blog articles, please pay attention to the official account: the beauty of data analysis and statistics, add the author, personal WeChat, and enter the group to communicate with the author.
catalogue 1. Project background and analysis description
1) Project background
2) Dat ...
Posted by Nicoza on Wed, 24 Nov 2021 19:21:25 -0800