Maybe I started to think wrongly, and my description of the problem may be a bit messy, but I hope the possible solutions here can help others who encounter the same pit as me. Description: The springboot project runs in the docker image. Looking at the docker log, after the project is successfully started, it automatically restarts after about a minute, causing nginx to report 502 gateway or something when the website interface is accessed. There are two servers, one is a file server, running very simple code for uploading and downloading files and verifying tokens, and the other runs a java application. Both servers are updating the project image at the same time. After running, this problem is encountered, which is very strange. Then I made the project into a jar package and ran it directly in the application server using java -jar xxx.jar. Then it got stuck in some places and could not continue to start, or it showed that it had been killed. We suspected that the project memory leaked, causing the process to be killed by the system, so we changed to the previous docker image, and the result was the same. We suspected that the nginx configuration had changed, but it still didn't work. Then we changed to our own Alibaba Cloud server to run the latest image, and there was no problem. It was completely normal. Running the jar package in Alibaba Cloud was also normal. So we suspected that the system might have changed and caused this problem. So we took a look at top and found The CPU usage is too high. There is an unknown process that is very abnormal. I searched on Baidu and found out what command this cornd executes regularly, so I tried to solve it. (ps: And this is not installed by us, and we have never done this in the online environment) First check the status: Then see which commands are configured: I changed the 0. It was * before. I changed it to 0, then saved and exited. Then stop the service: Finally, check top. If the process still exists, kill it directly, and then ojbk it. It's a bummer. It took me half a day to figure it out. This is the end of this article about the infinite restart problem when running in the docker environment of the SpringBoot project. For more related SpringBoot docker infinite restart content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to use async await elegantly in JS
>>: How to implement mask layer in HTML How to use mask layer in HTML
Table of contents 1 Introduction 2 Prerequisites ...
There are many differences between IE6 and IE7 in ...
Step 1: View the current kernel rew $ uname -a Li...
CSS Viewport units have been around for the past ...
<br />Information duplication, information o...
MySQL 8.0.25 decompression version installation t...
1. Command Introduction The contab (cron table) c...
First, let me explain that what we want to do is ...
Table of contents 1. Timestamp to date 2. Convert...
Optimizing and refining information is always the ...
Preface You should often see this kind of special...
This article example shares the specific code of ...
Table of contents Preface Project Design rear end...
This article shares the installation and configur...
Table of contents 1. Example: this can directly g...