GithubHelp home page GithubHelp logo

Comments (3)

svanoort avatar svanoort commented on June 26, 2024

Sample heap histogram from one particular user:

1: 3225619 1883930096 [B
2: 13087693 1414354160 [C
3: 26803765 1286580720 java.util.HashMap
4: 2553146 612125480 [I
5: 5234200 428849536 [Ljava.util.HashMap$Node;
6: 6397241 326882112 [Ljava.lang.Object;
7: 7396770 236696640 java.util.HashMap$Node
8: 8773568 210565632 java.lang.String
9: 8227045 197449080 com.cloudbees.groovy.cps.impl.BlockScopeEnv
10: 1307970 192596624 [S
11: 4113772 164550880 com.cloudbees.groovy.cps.impl.FunctionCallEnv

Now, obviously it's hard to tell exactly what's doing what, but since each BlockScopeEnv and FunctionCallEnv has 2 HashMaps (types and locals), that adds up to: 24681634 HashMaps out of 26803765.

Yes, those two classes hold 92% of all of 'em.

from groovy-cps.

svanoort avatar svanoort commented on June 26, 2024

7396770 236696640 java.util.HashMap$Node means... uh, those maps are largely empty 😢

Yes, that's an average of 1 actual map entry for roughly every 4 maps.

from groovy-cps.

svanoort avatar svanoort commented on June 26, 2024

Resolved by released fix.

from groovy-cps.

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.