Spring cloud project restart gracefully: tomcat closes the process

This article mainly talks about the process of tomcat "rough stop" and several key information in the solution. The detailed solution steps will be in the following articles. Overall structure Let's take a look at the overall architecture of Tomcat to get a general understanding of the relationship between Tomcat components:Source:&lt ...

Posted on Sat, 06 Jun 2020 22:58:32 -0700 by HalfaBee

Spring resource loading

In Java, resources from different sources are abstracted into URL s, and the read logic of resources from different sources is processed by registering different handlers (urlstreamhandlers). However, the URL does not have a default definition of a handler relative to resources such as Classpath or ServletContext, although you can register your ...

Posted on Fri, 05 Jun 2020 23:20:24 -0700 by phpfreakjav

nginx+docker load balancing

Experiment: install nginx on a server, and enable two docker processes on the server to simulate load balancing1. Install nginx # rpm -vih http://nginx.org/packages/rhel/7/x86_64/RPMS/nginx-1.16.0-1.el7.ngx.x86_64.rpm 2. Install dockerBinary package download address: https://download.docker.com/linux/static/stable/x86_64/ #tar zxvf docker-18.0 ...

Posted on Tue, 26 May 2020 07:13:17 -0700 by goclimb

When Tomcat meets Netty

Story background Di ~ Di ~ Di ~, production accident, memory leak! Yesterday afternoon, I suddenly received the message of operation and maintenance that the memory in the production environment of a system in the branch leaked, so I helped to check it. Troubleshooting process The first step is to log The exception log given by the branch is ab ...

Posted on Mon, 18 May 2020 20:57:27 -0700 by Skaara

How to use maven plug-in to deploy project to remote running environment

Are you still using FTP to upload your War package? Here's a simpler and easier way to use. That's maven's cargo plug-in. Cargo is a set of tools to help users operate Web containers. It can help users realize automatic deployment, and it supports almost all Web containers, such as Tomcat, JBoss, Jetty and Glassfish. Cargo provides Maven inte ...

Posted on Sun, 17 May 2020 08:37:07 -0700 by Haggen

JAVA JNDI Injection Knowledge Details

Author: Tianrongxin Alpha Laboratory Original Link: https://mp.weixin.qq.com/s/TJTOh0q0OY-j6msP6XSErg 1. Preface JNDI is often encountered when exploiting or exploiting vulnerabilities. This paper describes what is JNDI, how RMI is used in JNDI, how LDAP is used, and how JDK 8u191 is used after. 2. Introduction to JNDI JNDI (The Java Nam ...

Posted on Fri, 15 May 2020 20:41:25 -0700 by rinteractive

Using the wagon Maven plugin plug-in to automatically deploy a project

The maven dependency of this plug-in is: <dependency>       <groupId>org.codehaus.mojo</groupId>       <artifactId>wagon-maven-plugin</artifactId>       <version>1.0</version>   </dependency>   The document address of the plug-in is: http://www.mojohaus.org/wagon-maven-plugin/ ...

Posted on Sun, 03 May 2020 15:55:34 -0700 by Sanoz0r

Spring Boot upload on Linux found no temporary directory and encountered 500 errors

Error Reason On Linux systems, when Spring Boot applications are started with java-jar commands, a tomcat (or undertow) temporary directory is generated in the operating system's / tmp directory, where the uploaded files are first converted to temporary files and saved.Because of the files in the temporary/tmp directory, the system executed th ...

Posted on Sun, 26 Apr 2020 10:07:48 -0700 by farel

Servlet container and Web application

Wrong understanding of starting sequence There has been a point before that the application runs in the Servlet container, because from the perspective of the usage of Servlet container and Web application, it really has this feeling. We start the Servlet container every time, and then start our application. For example, if the Web application ...

Posted on Sun, 26 Apr 2020 02:10:55 -0700 by plautzer

istio Gateway setting route

General index: istio from getting started to giving up series 1. Namespace injection sidecar kubectl label namespaces test istio-injection=enabled kubectl get ns test --show-labels 2. Resource file preparation 2.1 Deployment and Service apiVersion: v1 kind: Service metadata:   name: test-service   namespace: test   labels:     app: test sp ...

Posted on Wed, 08 Apr 2020 03:23:08 -0700 by Horatiu