> I was thinking whether it would be a good idea to force garbage
> collection
> when the user exits from the application ?
>
Even if it was possible, don't do it.
Let the JVM deal it, you don't want the JVM wasting time on GC if your
website is hit really hard unless really nessessary.
> Also, I was expecting that GC will be done shortly after the user's
> session terminates, however I haven't observed this at any reasonable
> time.
Don't rely on GC being done in the near future, actually you shouldn't rely
on garbage collection being done at all.
That's actually a common problem when using files in java, that people rely
on GC to close them, it can crash you application if you do. (Yeah this can
even crash Velocity or Turbine, if you are really unlucky.)
So start using try/catch/finally to close your files.
- Kasper
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]