|
Re: Re: Memory usage: msg#00096java.jetty.support
This appears to be a problem with some JVMs that are not garbage collecting classes, even after all instances have been unreferenced and the classloader discarded. I have not looked at this problem in much detail, other than checking via optimizeIt that Jetty is not keeping references to the old version of the webapp. If this is the case, there is not much we can do besides suggesting that you upgrade your JVM or see if you can change the class gc configuration for it. Running something like OptimizIt is also a good thing to verify that it is not your code or Jetty that is keeping the old objects/classes in memory. cheers Rob Stone wrote:> I have noticed something similar (4.1.n & 4.2.2, WinNT). In my case I > do the > stopping and starting programatically in the embedded web server (by > stopping and restarting each of the contexts), and I have noticed > significant memory creep. I did originally think it was my classes, > but after adding lots of debug and explicit destroy methods I am not > so sure anymore. It doesn't bother me too much, as it only really > effects development (The customers would usually be told to stop and > restart the web server process). > > Rob > > --- In jetty-support@xxxxxxxxxxxxxxx, Scott Eade <seade@xxxx> wrote: > >>I am using Jetty as the servlet container on my development machine, > > which > >>happens to be running win2k. I am noticing that as I stop and > > start the > >>application I am developing (using the admin servlet) the memory > > usage of > >>the jetty service I use to run jetty grows and grows until swapping > > starts > >>to occur. At this point I usually restart the service to get things > > moving > >>again. >> >>Now I know all of the stopping and starting I am doing is peculiar > > to > >>development, but still I would expect the memory usage to be more > > stable, as > >>it was with tomcat (though it was much slower ;-). >> >>Can anyone give me a clue as to what might be causing this > > behaviour. I am > >>also curious if I should expect to see similar behaviour on linux > > when I > >>start using Jetty for production? I would imagine that it would be > > less > >>apparent as I am unlikely to be restarting the webapp as frequently > > as I do > >>in development, but it will still happen. >> >>Thanks, >> >>Scott > > > > > For the latest information about Jetty, please see http://jetty.mortbay.org > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > -- Greg Wilkins<gregw@xxxxxxxxxxx> Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM ---------------------------------------------------------------------~-> For the latest information about Jetty, please see http://jetty.mortbay.org Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to ban an IP Address to access my Server, Greg Wilkins |
|---|---|
| Next by Date: | Re: jetty and mailman, Greg Wilkins |
| Previous by Thread: | Re: Memory usage, Rob Stone <rob_a_stone@xxxxxxxxxxx> |
| Next by Thread: | How to ban an IP Address to access my Server, ratan <ratan_njit@xxxxxxxxx> |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |