Giter Site home page Giter Site logo

Comments (4)

walkertest avatar walkertest commented on May 12, 2024

retained heap是2M吗? 这样的话,占比也不多吧

并且FileOutputStream 占比是 0.01%吧?
看上去代码 finally中,是有close的吧?

from tarsjava.

deniulor avatar deniulor commented on May 12, 2024

retained heap是2M吗? 这样的话,占比也不多吧

并且FileOutputStream 占比是 0.01%吧?
看上去代码 finally中,是有close的吧?

image
可以看到这边应该是已经close掉了

但是目前看,这种写一次logger,就进行一次fos的创建,会导致后期的GC难度变大。
看了笨神的文章:http://lovestblog.cn/blog/2015/07/09/final-reference/
这边介绍是fos会在内存中不断堆积,从而产生后续的gc问题。
从dump中看,一次占用0.01%的量还是很恐怖的

用github比较少,可以在搜索微信:deniulor,方便沟通,dump文件可以直接发送给你

from tarsjava.

TimmyYu avatar TimmyYu commented on May 12, 2024

下面的这一个版本日志控制器会换成LOGBACK。。不会使用这个老的日志控制器处理了。所以

from tarsjava.

TimmyYu avatar TimmyYu commented on May 12, 2024

新版本已经替换掉原本的日志控制器

from tarsjava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.