• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Does action and bean classes are garbage collected?

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am profiling my application using JProfiler.
Our App. server is Websphere5.1.
In recorded objects though I explicitly calls gc, bean and action classes remains there.
Is there any way to gc?
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This makes sense for Action classes since Struts instantiates a single instance and reuses that same instance for multiple users. Not sure about the forms. If you have your forms configured for session scope (the default) then there will be a reference to them in the session so they will not be garbage collected.

- Brent
 
reply
    Bookmark Topic Watch Topic
  • New Topic