wood burning stoves 2.0*
The moose likes Struts and the fly likes Does action and bean classes are garbage collected? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does action and bean classes are garbage collected?" Watch "Does action and bean classes are garbage collected?" New topic
Author

Does action and bean classes are garbage collected?

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
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

Joined: Feb 08, 2006
Posts: 948
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does action and bean classes are garbage collected?