fastjson memory leak solution - springboot actual e-commerce project mall4j

springboot e-commerce project mall4j( https://gitee.com/gz-yami/mall4j) java open source mall system Environment: jdk1 eight System: window/linux fastjson version: 1.2.29 Key codes: public class FastJsonUtil { /* * Convert pojo object to json string, and change hump naming to underline naming */ public static String buil ...

Posted by brodywx on Thu, 10 Feb 2022 10:54:06 +0100

Few people know that Java has four object reference methods

1, Why are there four kinds of references 01 At the beginning, when an object is not referenced (that is, there is no attribute / variable reference, for example, Object ob=new Object();ob=null;) It will be automatically recycled by the JVM. It is a strong reference before it is equal to null. For example, if you go to a restaurant for dinner ...

Posted by saiko on Mon, 31 Jan 2022 04:57:47 +0100

java thread knowledge ThreadLocal

1, Introduction to ThreadLocal When multiple threads access the same shared variable, it is easy to have concurrency problems, especially when multiple threads write to a variable. In order to ensure thread safety, general users need to take additional synchronization measures when accessing shared variables to ensure thread safety. ThreadLoca ...

Posted by minou on Fri, 28 Jan 2022 06:23:00 +0100

Common [memory leak] posture

Focus on the official account [high-performance architecture exploration], dry cargo for the first time; Reply to [pdf] and get classic computer books for free This article is excerpted from the article: Memory leaks - causes, avoidance, and location This paper summarizes several common ways of memory leakage. Paying attention to these poin ...

Posted by jasonbullard on Tue, 18 Jan 2022 18:30:18 +0100

Leak Canary for Android performance optimization

Introduction and use of LeakCanary for Android memory leak detection Click on the official website here , this article is a rough translation of the official website and my own understanding 1, Use 🌚 To use LeakCanary, you need to add build. XML to the app module In the gradle file, add: dependencies { debugImplementation 'com.squareup.l ...

Posted by robotta1530 on Sun, 02 Jan 2022 11:55:36 +0100

Android performance analysis and optimization learning App memory optimization

1. Memory problem Memory jitter: jagged, GC causing CatonMemory leak: available memory is reduced, frequent GCMemory overflow: OOM, program exception 2. Tool selection Memory Profiler Real time charts show application memory usage, identify memory leaks, jitters, etc., and provide the ability to capture heap dumps, force GC, and track memory ...

Posted by jamescalvin on Wed, 29 Dec 2021 00:06:54 +0100

How to deal with Netty out of heap memory leakage?

1, Background During the development process, we encountered the problem of out of heap memory leakage - the service will fake death (it seems that the service process is still running, but there is no business response). Check the error log of logback and record the following information: [location-center:192.168.5.14:8017] [,] 2021-07-2 ...

Posted by tmc01 on Fri, 24 Dec 2021 20:39:03 +0100

Python_ Garbage collection mechanism

I Why do I need a garbage collection mechanism When a Python program is running, it needs to open up a space in memory to store the temporary variables generated during running; After the calculation is completed, the result is output to the permanent memory. If the amount of data is too large and the memory space is mismanaged, it is easy to ...

Posted by elementz on Mon, 20 Dec 2021 00:09:51 +0100

Modify the lazy list using epoch based reclamation (EBR, a method of domain specific reclamation)

As mentioned earlier, the biggest hidden danger of lazy list is logical deletion, but there is no physical deletion problem. Therefore, EBR first solve d this problem to him. I EBR modification int parse_delete(intset_l_t *set, val_t val) { node_l_t *pred, *curr; int result, validated, isVal; while(1) { //Init pred ...

Posted by jonmkim on Sat, 11 Dec 2021 07:53:27 +0100