Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does action and bean classes are garbage collected?

 
Deepa More
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • 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?
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic