At 11:43 PM 27/06/01, you wrote:
>I think my application is leaking. Over time the size of the Java process
>grows but never shrinks back down.
>
>I'm not sure of the best way to find the leak. I can't afford expensive
>profiling tools like OptimizeIt, etc...

You can download an evaluation version of OptimizeIt and JProbe - not the 
ideal solution, I agree, but you might find that the 30 day usage is 
sufficient...





>It may be something as simple as a design flaw on my part... Here's my
>design:
>
>requests come into a servlet which creates vectors of objects from database
>data. These vectors are stored in the request scope and then I forward to a
>JSP page where the results are displayed from the Vectors.
>
>I assumed (incorrectly?) that since they were in the request scope they
>would be garbage collected after the request was over (which is when the
>page has been sent to the user, right?). Is this not the case?
>
>Any help/suggestions anyone has would be great!

Have you tried manually wiping the Vector (myVector.clear()) at the end of 
the jsp page after using the data? Does this fix/confirm the cause of the 
problem?






>Hunter


--

                           *   Jim Cheesman   *
             Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 
2360
                             Profanity sucks.


Reply via email to