[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Server Resources?



"Chad Levin" <chadl@xxxxxxxxxxxxxxx> writes:

> After the initial problems I have had with the server the thing has been
> running really great up until now. Visitors of my site are reporting a lot
> of errors when using a CGI-Script. According to the log file the programs
> did not work because of a resource error. In order to see if the error

Please send the complete error message!

> 8:03pm  up 4 days, 18:49,  1 user,  load average: 0.02, 0.04, 0.00
> 48 processes: 47 sleeping, 1 running, 0 zombie, 0 stopped
> CPU states:  0.0% user,  1.5% system,  0.0% nice, 98.4% idle
> Mem:  128048K av, 119696K used,   8352K free,  64588K shrd,  16396K buff
> Swap: 131536K av,  13472K used, 118064K free                 58524K cached

> What I would like to know is how is the server using all but 8MB of RAM when
> this is a slow day in terms of page views. Also, why does the CPU say that
> it is nearly idle yet errors still occur when I try and run a script?

You're reading top wrongly. It says that only 8 mb of RAM is not used
at all. That's right.

But when you normally think of free ram, you defined it as the amount
of memory available to applications. To get that number from top, you
need to do a little calculation:

        8352+16396+58524 = 83272

So actually, you have 81 mb of free ram. Not bad.

Your CPU seems to be idle most of the time too (0.00 loadaverage).

I.e. it's probably not those kind of resource limits your script is
hitting. Please post the complete error message from the script -
without that it's impossible to help you.


-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.dk/