TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:6265] memory leakage with Apache, Perl CGI, and Samba



Ah.  This explains it.  My next question is this: will this swap system
slow down the web-server's cgi scripts that require transferring quite a
bit of data (say 2-3 megs) from another machine via TCP/IP and then
storing that data in temporary arrays in Perl?

It seems to run a lot faster in the morning...

Thanks,
Dave

On Thu, 3 Jun 1999, Ben Kochie wrote:

> I'm not sure of your experience with linux, so I will start at the basics
> 
> It is normal for Linux to have no memory free.  Linux has an automatic disk
> swap system.  it uses un-used memory for disk swap.
> 
> Mem:  63216K av, 61692K used,  1524K free, 18212K shrd, 29148K buff
> Swap: 72256K av,  2888K used, 69368K free               10680K cached
> 
> this is a system that has been up for 323 days (output from top)  notice that
> it uses almost 30MB for buffers.. this is all disk information cached in RAM.
> 
> Mem:  127976K av, 124764K used,   3212K free,  36496K shrd,  25572K buff
> Swap: 128484K av,   6156K used, 122328K free                 47708K cached
> 
> this is my system.. up for only one day (damn ICMP bug)  I run gnome, netscape,
> gimp, xemacs, but I still am using 25MB of ram for disk buffer.
> 
> there is no memory leak, it's just wasting ram not doing anything with it.
> 
> 
> On 03-Jun-99 David Christian wrote:
> > I'm running a Linux box an intranet web server, and so far it's been
> > working great, except for the fact that it is continuously leaking memory
> > in one way or another.  When I reboot the machine in the morning (I know!
> > Sounds like Windoze!)  It is using 22M of RAM in its idle state.
> >   By the end of the day, it is using 46 out of 48M.  I watch it slowly
> > creep up over the process of the day, and asking for a particularly large
> > search using a perhaps sub-optimized perl-script will swallow up a meg of
> > RAM in one go.
> > 
> > I'm also using Samba to allow our HTML guy to edit the pages on the
> > machine.
> > 
> > Can anybody point me towards the culprit or how to find the culprit?  And
> > if you've seen this before, is there a good solution?  The web gets mighty
> > slow running entirely on swap.
> > 
> > Thanks a bunch!
> > Dave
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > Try our website: http://tclug.real-time.com
> 
> ----------------------------------
> E-Mail: Ben Kochie <ben@nerp.net>
> Date: 03-Jun-99
> Time: 10:35:20
> 
> This message was sent by XFMail
> ----------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
> 
>