JVM 1.8 performance monitoring and tuning learning

1. Parameter type of JVM Tools documentation https://docs.oracle.com/javase/8/docs/technotes/tools/unix/ 1. Standard parameters         2. - X parameters Nonstandard parameter: it may be different in different versions of JVM java defaults to mixed mode For example, change java mode to interpretation mode: java -Xint -version ...

Added by davieboy on Thu, 26 Dec 2019 08:51:06 +0200

JSTL 1.2 jsp uses jstl to import packages to solve various errors

Problems encountered in using JSTL 1.2 JSP code <%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" isELIgnored="true"%> <%-- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> --%> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> ...

Added by dwu on Mon, 23 Dec 2019 16:42:11 +0200

003. Analysis of thread pool application and implementation principle

1. Why use thread pool? Is the more thread pools the better? Thread is an object in java, but also a resource of operating system. It takes time for thread creation and destruction. If create time + destroy time > execute task time, it is not cost-effective. Java objects occupy heap memory, and operating system threads occupy system mem ...

Added by Miichael on Tue, 17 Dec 2019 13:53:25 +0200

[Data Structure 05] Red-Black Tree Base - Binary Search Tree

Catalog 1. Introduction to Dichotomy 2. Binary Search Tree Definition 3. CRUD of Binary Search Tree 4. Two extreme cases of binary search trees 5. Summary of Binary Search Tree Preface stay [Algorithm 04] Tree and Binary Tree In this article, we will expand our explanation on the bas ...

Added by dta on Mon, 16 Dec 2019 03:03:03 +0200

nginx configures domain name, reverse agent and load balancing

Listening to different ports The default commodity of nginx is port 80. If there is a server service in the configuration file, you can copy multiple servers below if you need more than one. Listen to different ports to change the corresponding configuration server { listen 80; # Listening port number, 80 by def ...

Added by dennisflash on Thu, 12 Dec 2019 20:59:55 +0200

Simulate spring boot to write a tool class nested Tomcat (easy to debug)

In order to debug the SpringMVC code in the Spring source project, using Tomcat plug-in is more convenient, then you need to simulate the function of SpringBoot like yourself: start the Spring application, embedded Tomcat and do a good job of correlation. Why is it so troublesome??? Because I am a common Java project, the basic web.xml file, I ...

Added by Zallus on Thu, 12 Dec 2019 18:03:17 +0200

JavaEE Foundation (01): Servlet implementation, lifecycle execution

Source code for this article: GitHub. Click here || GitEE. Click here Introduction to Servlet Server-side programs written in Java have platform-independent and protocol-independent features. Their main functions are to interactively browse and generate data and generate dynamic Web content.Using the Servlet, you can collect user input from w ...

Added by nosmasu on Tue, 10 Dec 2019 06:14:41 +0200

Java web learning journey 4-Cookie

Cookie understanding Each web application will send its own set of cookies to each browser. The backend can operate these sets of cookies. Cookies between applications are independent (set cookies, which can be shared between applications) Reading, writing and deleting cookies package com.my.test.web; import javax.servlet.S ...

Added by thyscorpion on Sat, 07 Dec 2019 07:14:34 +0200

Various problems of configuring json in spinning

What I built is that springboot is version 4.x, which sometimes brings a lot of problems Question 1 In the beginning, when we used the lower version, we configured json to return <!--&lt;!&ndash; https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl &ndash;&gt; <dependency> ...

Added by p0pb0b on Thu, 05 Dec 2019 09:57:36 +0200

Spring boot2 configures ssl to realize automatic transfer from HTTP access to HTTPS access

1. Generate a certificate. You can use self signed certificate or obtain it from SSL certificate authority center In JDK, keytool is a certificate management tool, which can generate self signed certificates. Here, use the keytool provided by JDK to create certificate tests Open cmd window, enter command keytool -genkey -ali ...

Added by irishjohnny24 on Thu, 05 Dec 2019 06:36:58 +0200