I spent several hours trying to create a straight native Java Guice sample that shows the problem, and then subsequently tried to show it with a simple RoboGuice app. I couldn't find the binding error messages on the heap in either sample. I'll put in a little more effort to try to reproduce it, but probably put this aside after that since the heap is still only ~3MB.
As a start, here's just one of the errors I found laying around in the heap
using Eclipse's MAT. There are many more but I can't easily count them.
Please excuse the long and wrapped lines.
| Shallow Heap | Retained Heap | Percentage
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
com.google.inject.internal.InjectorImpl @
0x40636dd0
| 48 | 377,504 | 11.06%
|- com.google.inject.internal.ConstructorInjectorStore @
0x40636ea0
| 16 | 62,968 | 1.84%
| '- com.google.inject.internal.ConstructorInjectorStore$1 @
0x40636eb8
| 16 | 62,952 | 1.84%
| '-
com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl @
0x40636f38
| 56 | 62,936 | 1.84%
| |-
com.google.inject.internal.util.$CustomConcurrentHashMap$Impl$Segment[16] @
0x40636f78
| 80 | 62,816 | 1.84%
| | |-
com.google.inject.internal.util.$CustomConcurrentHashMap$Impl$Segment @
0x406371b0
| 32 | 15,000 | 0.44%
| | | |- java.util.concurrent.atomic.AtomicReferenceArray @
0x4061c6d8
| 16 | 14,944 | 0.44%
| | | | '- java.lang.Object[4] @
0x40658898
| 32 | 14,928 | 0.44%
| | | | '-
com.google.inject.internal.util.$MapMaker$LinkedStrongEntry @
0x406588c0
| 32 | 14,896 | 0.44%
| | | | |-
com.google.inject.internal.util.$MapMaker$LinkedStrongEntry @
0x40600070
| 32 | 13,160 | 0.39%
| | | | |- java.lang.String @ 0x40603d28 Unable to create
binding for com.[...myclass...]. It was already configured on one or more
child injectors or private modules\u000a (bound by a
just-in-ti...| 24 | 952 | 0.03%
On Tuesday, July 24, 2012 3:02:56 PM UTC-5, Sam Berlin wrote:
>
> Can you create an issue an attach a test that shows the problem?
>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-guice/-/XeIBrg41TkwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.
