Spring boot introduces external jar s and packages the project through maven, unable to start

Road to crater Preface Introducing jar Preface First of all, you must print the error log in your project (I use log4j), so that you can see what causes the startup error. Introducing jar How to import local jar package 1. Create a new lib folder under resources and put the jar package file in this directory 2. In the ...

Posted by pumaf1 on Thu, 21 Nov 2019 11:14:30 -0800

ThreadPoolExecutor Thread Pool Source Code Analysis

Foreword (must see here!!) I'm sure you know the process of thread pool execution, but how do you configure thread size, how do you really use it, and how do you configure it reasonably with quantified metrics?This article will analyze the implementation of thread pools from the source code point of view and show how thread pools are quantified ...

Posted by johnska7 on Mon, 18 Nov 2019 18:08:39 -0800

Some key analysis tools of MySQL

Catalog pstack gdb strace perf pstack Get stack informationProblem thread positioningLow load mysql_pid=4522 pstack $mysql_pid>pstack.info PT PMP sorting stack information pt-pmp pstack.info | less You can also directly execute Pt PMP pt-pmp --pid 4522 as 10 __io_getevents_0_4(li ...

Posted by fatmart on Mon, 11 Nov 2019 15:09:47 -0800

jstack analysis of JVM problems

Background: jstack is used to generate a thread snapshot of the current time of the JVM. It can locate problems such as thread deadlock, dead cycle, thread pause caused by too long external request time. Thread classification: gc thread Tomcat worker thread Tomcat Boss thread (IO thread) Dubbo Netty JIT thread [CompilerThread3] User d ...

Posted by PrinceOfDragons on Wed, 30 Oct 2019 22:13:15 -0700

SpringBoot 22: integrating RabbitMQ

brief introduction In the Spring project, you can use Spring rabbit to operate RabbitMQhttps://github.com/spring-projects/spring-amqp Especially in the spring boot project, you only need to introduce the corresponding amqp initiator dependency. It is convenient to use RabbitTemplate to send messages a ...

Posted by dutchboy on Sun, 27 Oct 2019 23:19:56 -0700

II. Construction of project development framework

    Create a new project first   Select maven project creation   Delete the src folder. It's just a shell. It's useless. Continue to create a maven project in the shell you just created Not as a parent project, just as a module aggregation here Then there are mo ...

Posted by scampbell on Sat, 26 Oct 2019 19:56:23 -0700

Implementation details of ConcurrentHashMap

Implement lock striping Concurrent HashMap allows multiple modification operations to be performed concurrently. The key is to use lock separation technology. It uses multiple locks to control changes to different parts of the hash table. Concurrent HashMap uses segments to represent these differen ...

Posted by rwwd on Fri, 25 Oct 2019 22:30:12 -0700

Experience docker container health quickly

The purpose of this article is to experience the health check function of docker container. Experience is the main function, and development is not involved. The content related to development will be detailed in the following article. About container health check Consider this situation: in the docker environment, the container of spring boot ...

Posted by NFClimber on Sat, 19 Oct 2019 22:44:16 -0700

AWS Lambda automation and PowerShell

I've been watching how to use Lambda and Python for the past two days, but I'm usually more used to using PowerShell to manage various systems. Try using PowerShell in Lambda. First, you need to install the following three modules on the local computer. Install PowerShell Corehttps://github.com/powershell/powershell Install the. Net core softw ...

Posted by matthewc on Tue, 15 Oct 2019 07:43:45 -0700

Backup and Recovery of Cassandra Management

Cassandra's backup is to take a snapshot of existing data, while recovery is to restore the snapshot. Not only can you take a snapshot of the whole library, but you can also backup tables and keyspace s separately. It also supports incremental backup. 1. Full Backup [root@db03 ~]# nodetool snapshot Requested creating snapshot(s) for [all keysp ...

Posted by mgrphp on Fri, 11 Oct 2019 13:44:56 -0700