Actuator + Prometheus + Grafana Build Microservice Monitoring Platform

[TOC] Preface about Actuator: Partners who know about Spring Boot monitoring capabilities should know about the Spring Boot Actuator subproject, which provides powerful monitoring capabilities for applications.Starting with Spring Boot 2.x, Actuator changed the underlying layer to Micrometer, providing stronger and more flexible monitoring ...

Added by MerlinJR on Thu, 02 Jan 2020 07:04:57 +0200

Principle and simple implementation of java agent technology

Note: This article defines the operation of adding corresponding logic before and after function execution as MOCK. 1. Introduction When communicating with QA classmates one day, I found that QA classmates have the need to stop the method for a period of time when calling for a method. I was curious about the functionality of this part, so I de ...

Added by lomokev on Mon, 30 Dec 2019 10:42:44 +0200

Struts2 file upload

Upload a single file Form: <s:form action="HandlerAction" method="POST" enctype="multipart/form-data"> <s:file name="profile" label="Head portrait" /> <%-- <s:file name="profile" label="Head portrait" accept="image/jpeg" size="102400" /> --%> <s:submit value="Submit" /> </s:form> method="POST& ...

Added by Bramme on Fri, 27 Dec 2019 04:44:36 +0200

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

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

Reflection from 0 to getting started

Personal public number: not a bald programmer, Xiao Li.Focus on Java content, welcome to leave a messageThere are many articles in the article, so it is suggested to collect them reflex Java is divided into compile time and run time Compilation method description: Static compilation: determines the type & bound object at compile time. Su ...

Added by johnsonzhang on Thu, 12 Dec 2019 15:07:59 +0200

Dry goods, record the troubleshooting process of frequent fgc caused by Metaspace

Recently, a machine on the line gave an alarm after running for more than 10 days, and fgc frequently appeared. After cutting off the traffic, it took the application heapdump file from the operation and maintenance side. At the beginning of fgc, I went to the container platform to check the gc logs, which are as follows: It can be seen from ...

Added by noisenet on Sun, 08 Dec 2019 20:51:27 +0200

Analysis of Eight Posture Writing Methods for Single Case Mode

Catalog What is the singleton mode? Advantages of the singleton pattern Single Case Mode Implements the Whole Idea Process Scenarios for Single Case Mode Eight Posture Writings for Single Case Mode Application of singleton mode in JDK source code Single Case Mode Summary ...

Added by Gamic on Tue, 26 Nov 2019 03:58:03 +0200

Detailed usage of Spring Boot Actuator monitoring

In enterprise applications, it is not enough to learn how to develop the SpringBoot application's capabilities and write unit tests, integrated tests, etc.It also needs to be monitored and managed in the actual software development.SpringBoot's Actuator module enables monitoring and management of applications. Introduction to Actuator In produc ...

Added by oliverj777 on Wed, 20 Nov 2019 01:49:13 +0200

[design mode] let's talk about the single example mode

? for some classes in the system, it is important to have only one instance. For example, a system can have multiple print tasks, but only one working task; a system can only have one window manager or file system; a system can only have one timing tool or ID (sequence number) generator. How to ensure that a class has only one instance and that ...

Added by barry_p on Wed, 13 Nov 2019 05:14:02 +0200