During the last weeks I have managed to set up all major components of a
web-based educational simulation for a group of German science and finance
institutions where participants can lead their own small simulated industrial
manufacturing company to success (or bancruptcy) in a virtual market against
others. All dynamic and calculatory components of the site as well as the
backend are completely python/psp based and worked out their first runs pretty
well during the last weeks, with about 390 virtual companies and far more than
1000 participants from schools and "real" companies all over Germany.
Besides migrating the system away from python 1.5.2 sometime now, I have to
deal with another slightly annoying issue: The Appserver threads, starting at
an approx 2.7MB memory footprint, are constantly growing at a rate of about
10-30MB a day, bringing the system to halt in less than 2 weeks if no AppServer
restart is made in time.
As I said all dynamic pages are psp, inheriting a special base class which
provides login functionality as well as database connectivity and a number of
often used methods. Nothing special, it seems.
I would like to hear your speculations and advice on what could be possible
causes for such memory leakages and how I could possibly get an insight into
what data the (running) AppServer processes are holding in memory or how I
could trace possible problems.
P.S.: As an amusing footnote, I'd like to add that I ported the fairly
complex "market model" simulation core from MS VB because the company
that originally invented it was strictly MS-only and failed to provide a
server system/software combination capable of handling a substantial
number of groups without constant dropouts and failures.