It shouldn't be running more than one process if lighttpd.conf is
configured to run one.  Let's see where those are coming from... run:

pstree -p

and see what the parent process is.  If they all have lighttpd as the
parent, I'd make sure that lighttpd is using the config file you're
specifiying.  If it's less clear, paste the output from that.

Cheers,
Justin

On Jun 30, 2:57 am, brendon <[email protected]> wrote:
> I just thought I'd add that I have max_procs => 1 in lighttpd.conf.
>
> Brendon
>
> On Jun 30, 4:28 pm, brendon <[email protected]> wrote:
>
> > I was curious if it is normal for there to always be 6 instances of
> > web.py running. e.g. when i run the ps command i get 6 instances of
> > python all with different PID's.
> > e.g.
>
> >  1736 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1737 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1738 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1739 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1740 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1741 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
> >  1742 root      7228 S    /usr/bin/python /mnt/WebpyTest/main.py
>
> > However, when I check the memory usage with the top command I get the
> > following:
>
> >  1736  1735 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1737  1736 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1738  1737 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1739  1737 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1740  1737 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1741  1737 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
> >  1742  1737 root     S     7228 23.5  0.0 /usr/bin/python /mnt/
> > WebpyTest/main.py
>
> > I am running this on a very stripped down version of Linux and off a
> > SD card the system specs are also quite 8MB flash memory, 1GB SD and
> > only 32MB memory. Hence, it is very important that I use the minimal
> > amount of resources. I have tried different combinations of Lighttpd
> > with FastCGI as well as using flups for WSGI, but I am still getting
> > memory errors always being because main.py used up all the memory.
> > Apart from my program having a memory leak I just want to know the
> > following:
> > 1. Is it normal for there to be so many instances of webpy (main.py in
> > my case)
> > 2. Is it a concern?
> > 3. Any other recommendations to get the web.py memory consumption
> > down.
>
> > Any help is greatly appreciated,
>
> > Brendon
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to