On Thu, 28 Sep 2000, John Reid wrote:
> The problem I am facing is with our database definition files. These are
> custom files which are required at run time. The file consists of a long
> series of subroutine calls with arguments that refer to the definitions
> of fields, tables, etc. They are used in conjunction with a series of
> internal libraries to provide information for displaying data, handling
> file upload locations, etc. The subroutines modify data in global
> variables.
> 
> The subroutines called exist in the calling module's namespace. When
> used as supplied they caused a significant memory leak (~120K per
> request). I have done a lot of work over the past few days to try and
> deal with the system to make it function as expected, but with no
> success. It would be nice if this data could be read and compiled at
> server start. I experimented with IPC::Shareable, but when I attempted
> to do anything with it in my startup.pl file it segfaulted the server
> and httpd would not start.

If you are just loading them at server start and not changing them at all
while running, you don't need IPC:: anything.  Just bring them in from
your startup.pl and put the data in globals.  If that's what you tried and
it isn't working, please post a little bit of your code for us.

- Perrin

Reply via email to