tomcat optimized reality

Original Link: https://my.oschina.net/u/1590001/blog/268213 Memory is not as good as bad pen. Here's tomcat brain-free optimization 1. Memory settings (VM parameter tuning)(1). In Win ...

Posted by metrathon on Sat, 14 Sep 2019 20:06:00 -0700

Concurrent programming demo records demo20 ReentrantLock series

Horse Soldier High Concurrency Programming Series Record https://www.bilibili.com/video/av11076511/?spm_id_from=333.788.videocard.4 ReentrantLock1 reentrantlock used instead of synchronized In this example, because m1 locks this, m2 cannot execute u ...

Posted by daucoin on Tue, 10 Sep 2019 18:16:37 -0700

Summary of static Static static Keyword in Java

static keyword in java I. Static overview We can create multiple objects based on a class, each object has its own members, and the values of all member variables exist according to the object. Sometimes we want all objects of a class to share a me ...

Posted by pyc on Sat, 07 Sep 2019 02:42:11 -0700

Java self-study-class and object singleton mode

Java Hungry Han and Lazy Singleton Patterns There is a strange Dragon named GiantDragon in LOL, only one, so this class can only be instantiated once Step 1: Singleton mode Singleton mode, also known as Singleton mode, refers to a class in which only one instance exists in a JVM. Step 2: Hungry Han singleton mode GiantDragon should only have on ...

Posted by DimeDropper on Fri, 06 Sep 2019 19:50:48 -0700

Operations and Maintenance Choreography Scenario Series - Download JVM Stack to OSS

Scenario introduction Jstack is used to generate thread snapshots of the current time of the java virtual machine. Thread snapshots are a collection of method stacks that are being executed by each thread in the current java virtual machine. The main purpose of generating thread snapshots is to locate the causes of long thread pauses, such as ...

Posted by Ryanz on Fri, 06 Sep 2019 03:40:28 -0700

Do you really use the singleton mode?

Singleton mode can be written as long as it is a qualified development, but if you want to go deeper, a small singleton mode can involve many things, such as: Is multithreading safe?Is it lazy to load?Performance, etc.Do you know how to write several singleton modes?How do I prevent reflection from destroying the singleton mode? 1. Single Case ...

Posted by php_blob on Sun, 01 Sep 2019 10:41:33 -0700

Jvm-Sandbox Source Analysis--Startup Analysis

Preface 1. Work reason, use jvm-sandbox more, then do source code analysis, to know each other, personal ability is limited, if there are errors, welcome to correct.2. About what jvm-sandbox is, how to install it, and how to move it Official Documents3. Source analysis is based on jvm-sandbox Latest master code, tag-1.2.1.4. The tentative plan ...

Posted by tomz0r on Sun, 01 Sep 2019 09:32:10 -0700

java Dynamic Agent $Proxy0 Source Code Analysis

Introduction to Dynamic Agent Originally a direct call to the function of the proxy object, but now it indirectly calls the function of the proxy object through a proxy object. When indirectly invoked, we can increase the function we want to achie ...

Posted by ltbaggz on Sun, 01 Sep 2019 03:37:31 -0700

Common Classes Based on JAVA

Common Basic Classes 1. Date class Date represents a specific instant, accurate to milliseconds. Most methods in the Date class have been replaced by methods in the Calendar class. Membership methods in the Date class: 1. Judging the front and b ...

Posted by roots on Wed, 28 Aug 2019 06:15:34 -0700

Homemade simple thread pool with java (independent of concurrent package)

Long ago, people did not want to use processes in order to continue to enjoy the benefits of parallelism, so they created lighter threads than processes. Taking linux as an example, creating a process needs to apply for new memory space and copy some data from the parent process, so the overhead is relatively large. Threads (or lightweight proc ...

Posted by Nakor on Sun, 25 Aug 2019 04:50:22 -0700