Eureka [Troubleshooting Analysis]

1. Application services are not available before startup Assuming that the eureka server service hangs up or does not start before the client application service starts, then the application service can still start normally, but there will be an error message: 2019-10-13 14:40:41.056 INFO 79897 --- [ main] com.netflix.discovery.D ...

Added by V on Sun, 13 Oct 2019 12:46:19 +0300

A Simple File Transfer Program

File transfer requires a server and a client to transfer files after the connection is established. First is the server. Writing mistakes 1. When listening, I forgot to give the loop, so that the file can only be transferred once and then it ends. 2. To get the customer's ip, I only wrote getInetAddress ...

Added by gordo2dope on Thu, 10 Oct 2019 20:59:47 +0300

Android Network Programming-Socket

Socket plays a very important role in Android network programming. Basic Concept of Socket Socket is the middle software abstraction layer of communication between application layer and TCP/IP protocol family, which is represented as a programming interface (API) encapsulating TCP/IP protocol family. From the point of view of design pattern, ...

Added by ndjustin20 on Tue, 08 Oct 2019 00:35:59 +0300

Introduction to Socket Communication

I. Socket sockets Two programs on the network communicate through a two-way connection to realize data exchange. One end of the connection is called a socket. Using socket to develop TCP program in java, this method can easily establish reliable, bidirectional, persistent, point-to-point communication connection. In the development of socket ...

Added by FSGr33n on Mon, 07 Oct 2019 13:45:09 +0300

Common thread pools in JAVA

The core class of the Executor framework is ThreadPoolExecutor, which is the implementation class of the thread pool. See ThreadPoolExecutor Source Parsing .Executors also provides us with four common thread pools, all based on ThreadPoolExecutor and one based on ForkJoinPool. FixedThreadPool Usage ExecutorService fixedThreadPool = Executors.ne ...

Added by konigwolf on Tue, 24 Sep 2019 05:56:40 +0300

Java 8 Virtual Machine (JVM) Memory Overflow Actual Warfare

Preface I believe that many senior and middle-level students in JAVA will often encounter an interview question during the interview.How do you tune and locate JVM problems in your work? In fact, if the number of users is small and your code is normal, how can we accumulate experience in this field unless we really encounter few problems relate ...

Added by techmeister on Sun, 22 Sep 2019 15:42:54 +0300

Linux Interprocess Communication (Pipeline, Named Pipeline, Message Queue, Semaphore, Shared Memory, Socket)

What is a process? In Linux system, process is the basic process to manage transactions. Processes have their own independent processing environment and system resources. The whole life of a process can be simply divided into three states: Ready state: The process has all the conditions for execution an ...

Added by faizanno1 on Sat, 21 Sep 2019 17:22:11 +0300

Netty Source Code Analysis--The Mystery of Unpacker

There are many kinds of Netty decoders, such as length-based, divider-based, private protocols. However, the overall thinking is the same. Packet disassembly idea: When the data meets the decoding conditions, it is disassembled. Put it in an array. It is then sent to the business handler for processing. Half-package idea: When the data read i ...

Added by ziong on Thu, 19 Sep 2019 06:40:31 +0300

IO Multiplexing Model--Implementation of poll and poll version of TCP server

The realization and principle of poll function: Poll is actually similar to select in that it opens up a space in the kernel, but it does not monitor every event, poll monitors a structured set of events. 1. Functional model: struct pollfd{ int ...

Added by tarscher on Tue, 17 Sep 2019 17:19:55 +0300

Lifecycle of redis command execution

baiyan Introduce First, let's look at a very familiar redis command execution diagram:Think about it then, when we connect to the redis server, enter and execute a redis command, such as set key1 value1.How on earth was this command sent to the redis server, and how did the redis server parse, process, and return to its successful execution? Cl ...

Added by luuno on Sun, 15 Sep 2019 10:15:30 +0300