On Tuesday February 12, 2002 02:00 pm, Jeff Johnson wrote:
> > do you use any database with your application ?
> > If so: please give us the version of the db and the db-adapter
>
> I've got a production webkit server running that stopped serving pages
> last night.  I restarted it and noticed that it's taking more and more
> memory over time.  In the past few hours, top is showing that it went
> from 29 MB, to 50 MB in size.  Any ideas for tracking down a leak would
> be very helpful.
>
> I'm running FreeBSD 4.5, Python 2.2, Postgres 7.1.3 on another machine,
> py-PyGreSQL-3.1_2, Webware/Cheetah/FunFormKit CVS from about 2 weeks
> ago.
>
> Thanks,
> Jeff

First thing I would do is try to isolate what is causing the memory leak.  Do 
_all_ servlets cause slow leaking over time, indicating a Webware bug?  Or 
only certain servlets, perhaps ones that use a particular module or feature?

So I would set up a test server that is a replica of your production server, 
and write a script to hit a particular servlet over and over with 
urllib.urlopen().  Monitor the memory usage, and compare with the results of 
hitting some other servlet.

A short-term solution would be to set up a cron job to restart your appserver 
on some regular interval (once a day, once a week, or whatever) at whatever 
time of day you have the least activity.

- Geoff

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to