No, that won't help. To call gc() doesn't call the garbage collector, you just set a mark saying 'I would like to do a garbage collection as soon as you like to do it'. Wether and when the garbage collector follows your desire is up to the implementation.
> -----Ursprüngliche Nachricht----- > Von: Brad Plies [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 27. September 2002 18:19 > An: Tomcat Users List > Betreff: Re: HOW TO: How do I allocate memory in JVM for extra virtual > hosts > > > I am not aware of all the performance implications of > this, but it should be possible to create a Thread to > run on some interval you define which just infinitely > loops a call for garbage collection (gc() right?) then > goes back to sleep until next iteration. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>