RequestScope is a pooled object that basically controls the number of SQL
statements you can run at any given time.   The pool is filled upon startup,
but is a very small footprint.  If it's the cause of the memory leak, you'll
notice the total number of RequestScope instances will increase as you run
statements.  If it remains constant (like it's supposed to), then it is not
the problem.  You can configure how many are in the pool in the
SqlMapConfig.xml, but I recommend you don't.   Eventually the RequestScope
pool will disappear  along with this configuration option.

Cheers,
Clinton

On 3/5/07, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

 Hello,



I have a Spring, Struts, SQL Map application that runs on JBoss/Tomcat.
And while going through a profiler, I am seeing that there are several
instances of "com.ibatis.sqlmap.engine.scope.RequestScope".  What is that
object used for?  The reason I ask is that I am trying to track down a
memory leak and am wondering if this class is possibly part of the cause?
Any help is greatly appreciated.  Thank you.



Daniel

Reply via email to