while you can never be certain, you can always hope by calling gc().
Also, you could write your own JVM :)
> -----Original Message-----
> From: Rowena Perks [mailto:Rowenap@w...]
> Sent: Tuesday, September 19, 2000 13:01
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] How to tune the garbage collection scheme
>
>
> -----Original Message-----
> From: Dirk Draheim [mailto:draheim@i...]
> Sent: 19 September 2000 09:15
> To: support@w...
> Subject: Professional JSP - It's great !
>
>
> Dear Wrox Press !
>
> I just read the book: Professional JSP.
>
> It's great !
>
> But now I have a question. Perhaps you could forward it
> to a specialist or even give me a hint where to ask, please ?
>
> Thanks !
>
> In chapter 7 (Sing Li), page 205, I read:
>
> "Using some super Java VM 'xray' debug tool, the JSP guru
> starts to engineer the connection pooling mechanism for a web
> application
> to maximally use the available heap and stack memory, balancing it
> carefully by tuning the garbage collection scheme."
>
> How to tune the garbage collection scheme ?
>
> All my JVMs just allow me to use options -noasyncgc or -noclassgc,
> some of them even not -noasyncgc.
>
> Are there tools (free or not free) to tune garbage collection ?
>
> What is your favourite (free or not free) super Java VM 'xray' debug
> tool ?
>
> What is your favourite (free or not free) performance monitor for Java ?
>
> Thank you so much !
>
> Yours
>
> Dirk
>
> ---
> Do you know what you want from this list? How would you provide
> programmers with the solutions they need? If you have the
> answers, and are willing to work in Birmingham (UK), then you
> could be a List Manager. Please send CVs and a covering letter to
> listsupport@p... for further information.