JVM parameter viewing and tuning
Summary of Common JVM Commands:
jps: View process ID s for each application
Jmap: View memory information, number of instances, and memory footprint Jmap-heap 10200 (process ID) View heap information
Jmap-dump:format=b, file=dump.hprof 10200 (process ID)Manual dump of heap memory information
jvisualvm: Launch jvisualvm to view heap i ...
Posted by gwledig on Sat, 09 Nov 2019 16:55:31 -0800
Common Java keywords and their use
final
static
this
super
1.final (four usages)
1. Modify local variables (assignments can only be made once, and remain constant for life)
Modify basic data types: Modified data variable values are not mutable
Modify reference data types: address values are not mutable, content is mutable
Matters needing attention:
1 Error:
...
Posted by anon on Fri, 08 Nov 2019 17:54:47 -0800
Performance testing framework
Before, I wrote a performance testing framework, which is only for testing a single HTTP interface. The business interface and non HTTP interface can't be adapted yet. Just when the front-end time is used, I updated my testing framework. This time, it is no longer based on the request, but on the method, so that the singularity can be avoided. ...
Posted by adt2007 on Tue, 05 Nov 2019 02:05:48 -0800
Talk about JvmStats of elastic search
order
This paper mainly studies JvmStats of elastic search
JvmStats
elasticsearch-7.0.1/server/src/main/java/org/elasticsearch/monitor/jvm/JvmStats.java
public class JvmStats implements Writeable, ToXContentFragment {
private static final RuntimeMXBean runtimeMXBean;
private static final MemoryMXBean memoryMXBean;
private static fi ...
Posted by IOAF on Mon, 04 Nov 2019 11:47:29 -0800
Java structural pattern sharing element pattern
Alibaba cloud double 11 campaign in 2019: https://www.aliyun.com/1111/2019/group-buying-share
I. overview
Sharing mode: "sharing" is the meaning of sharing, which means that one thing is shared by all, and this is the ultimate purpose of the mode.
Sharing element mode is similar to singleton mode in that only one object is generated t ...
Posted by phpete2 on Mon, 04 Nov 2019 00:31:40 -0800
Java design pattern series - sharing element pattern
I. overview
Sharing mode: "sharing" is the meaning of sharing, which means that one thing is shared by all, and this is the ultimate purpose of the mode.
Sharing element mode is similar to singleton mode in that only one object is generated to be shared. There is a problem here, that is, the modification of shared objects. In order ...
Posted by jaql on Sat, 02 Nov 2019 21:53:11 -0700
[the road to full stack] top ten new features of JAVA basic course 11 JDK8 (20190706v1.2)
Welcome to JAVA basic course
Blog address: https://blog.csdn.net/houjiyu...This series of articles will mainly focus on some basic knowledge points of JAVA, which are summarized in ordinary times. No matter you are new to JAVA development rookie or senior people in the industry, you hope to bring some help to your peers. If you have any questi ...
Posted by jf3000 on Sat, 02 Nov 2019 05:35:39 -0700
C language calls java
Java is also called by C language through JNI. Linux platform can be realized by introducing libjvm.so dynamic link library. First, you need to write java classes
public class Sample {
public static void test2() {
System.out.println("java Printed helloword");
}
}
This is a very simple java class. There is only one Java met ...
Posted by mattbrad on Fri, 01 Nov 2019 20:13:43 -0700
J.U.C package Summary - locks
I. what is AQS?
AQS is the abbreviation of abustatqueuedsynchronizer. It is a Java provided underlying synchronization tool class. It uses an int type variable to represent the synchronization state, and provides a series of CAS operations to manage the synchronization state. The main function of AQS is to provide unified underlying support fo ...
Posted by thatshanekid on Mon, 28 Oct 2019 03:55:28 -0700
Java self study - I/O Chinese problems
Coding Chinese in Java
Step 1: coding concept
The computer can only store numbers, and all characters will be converted into different numbers.
Just like a chessboard, different words are in different positions, and different positions have different numbers.
Some chessboards are very small, only numbers and English can be put
Some are bigger, ...
Posted by Deposeni on Sun, 27 Oct 2019 21:44:42 -0700