Comments (3)
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.
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.
Resolved by released fix.
from groovy-cps.
Related Issues (20)
- CPS Mismatches HOT 3
- java.io.NotSerializableException at com.cloudbees.groovy.cps.impl.ForInLoopBlock$ContinuationImpl.itr HOT 10
- Interceptor anchors for testing HOT 2
- NotSerializableException Spliterators$1Adapter HOT 12
- Documentation: CPS basics, example used HOT 1
- Duplicate annotation in com.cloudbees.groovy.cps.WorkflowTransformed HOT 1
- Closure.rehydrate() does not affect call resolution of the resulting closure HOT 1
- List to constructor coercion not supported
- [JENKINS-39329] Abstract methods lead to NPEs HOT 1
- Resolving super to wrong class HOT 4
- Strange behaviour when NonCPS method is calling a CPS method HOT 1
- Failing unit test & Travis integration ? HOT 1
- Strange issue with attribute vs. propertyBlocks HOT 2
- No way to limit recursion: with bugs, GroovyCPS will consume all memory HOT 7
- NonCPS should target `TYPE` HOT 1
- NonCPS should throw early error with CompileStatic HOT 1
- Incorrect return value from `vars` step HOT 1
- CompileStatic only works on methods HOT 1
- CCE when using a GString with a dynamic method pointer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groovy-cps.