Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a way to FORCE weak and/or soft referenced objects to be GC'd in Java?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. CODid you register your objects to global events by any chance? Perhaps a static field (or another thread object or something else) has a reference to them...
      singulars
    2. COGood question - had already looked into this and YourKit provides enough information to find these kinds of things quickly. While I am still investigating, so far I've narrowed this down (I think) to some behavior initiated by Spring's AOP when it proxies classes/methods using the RegexpMethodPointcutAdvisor. HOWEVER, it is only one special case (so far) of this advisor - we use this in numerous places that does NOT seem to create this problem. Still working on identifying what is unique about the one case that does... will post back when I have more.
      singulars
    3. COOk, so here's the update. I believe I've found the smoking gun for my particular issue. One of the proxies used in our application lazily-loads its implementation when needed from a cache to ensure that the operation always happens on the most recently cached object. If the cache doesn't have the object, the cache has been configured to instantiate and initialize the object. The proxy is a rather dumb proxy that for any method invocation, it asks the cache for the object, then invokes the method on the object. Comments have a char limit, so read on...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload