Re: perl2exe RAM garbage collector




"Robert Henniger" <robert.henniger@xxxxxxxxxxxxxx> wrote in message
news:1166721715.731531.290780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi to all.

Today i compiled an perl-script to an EXE with perl2exe under Windows.
This works fine.
This script is an HTTP::Daemon which forks for every request.
This works too.

Now my problem.
With every fork, the ammount of ram increase. With 1000 handled
requests the server needs round about 250MB RAM. The main-process
starts with 45MB.

I think every new process takes 300KB or more RAM. I am reaping my
finished Child-Processes but it doesnt work in perl2exe.


Would probably help if you could produce a *simple* demo of the problem. It
doesn't have to be a demo that does anything useful - just some perl script
that forks and reaps child processes - and that works fine when run as a
perl script, but fails to reap when run as perl2exe-built executable.

If I were to take a punt on a possible fix, I would suggest you try using
Win32::Process to launch the child processes (as it possesses a Kill()
function which can be used to terminate processes it has launched).

Cheers,
Rob


.



Relevant Pages

  • Re: head, recursively through file tree?
    ... What's the problem with running a shell or perl inline script ... | child-process to execute the user's commands. ... the shell forks a process for every command it runs unless ...
    (comp.unix.shell)
  • Re: Questions about perl daemons with child processes and open files / signals
    ... I just found out that perl has threads support. ... using forks. ... I think that terminating the script and closing ... why my fork method didn't work in case I need it ...
    (comp.lang.perl.misc)
  • Looking for a module/program author, or help with program...
    ... GPL'd script for speedreading called Speed Your Read (project name ... Windows exe using the IndigoStar perl2exe program. ... installer, and an instance of MySQL all embedded in the installer, and ...
    (comp.lang.perl.misc)
  • Could not find ParserDetails.ini...
    ... anyone can throw some light on how to resolve it. ... My script runs perfectly from the command line so I know it works. ... However when I try perl2exe myscript.pl I get the following ... Perhaps I am missing something blindingly obvious? ...
    (comp.lang.perl.misc)
  • To cat or to perl
    ... I'm running a script that forks off two forks and when they are done the ... main program combines the two output file together. ... Don Dukelow ...
    (perl.beginners)