[Catalyst] Re: memory usage of mod_perl process

Jeffrey Ng jeffreyn at gmail.com
Fri Feb 9 17:40:07 GMT 2007


On 2/9/07, Perrin Harkins <pharkins at gmail.com> wrote:
>
> On 2/8/07, Jeffrey Ng <jeffreyn at gmail.com> wrote:
> > when i run this "free" test, should i run it on the live server, or on a
> > test server with single process apache mode?
>
> I wouldn't mess with things on your live server, but you want to run
> in normal mode, not single-process.
>
> > here's the result on a live server:
> >
> >              total       used       free     shared    buffers
> cached
> > Mem:
> 4150972    2654016    1496956          0      27548    1313344
> > -/+ buffers/cache:    1313124    2837848
> > Swap:      8385912       6920    8378992
> [...]
> > Our CPU load is extremely high. But the actual RAM usage is not high at
> all.
> > we are using only 260 gig out of 400 gig.
>
> Not even that much.  You're using about 1.3 GB and the rest of that
> 2.6 is just being used to cache files.  You should be able to run a
> lot more apache processes on this machine, or maybe give some RAM to
> whatever else needs it on there, like a database.


hi how can you tell our apache is just using 1.3 GB? what king of files does
the rest of it cache?...

> From our top results, does it look
> > like the memory usage of our processes is the bottleneck?
>
> No, you have tons of free RAM.  It sounds like something else is
> slowing you down.  You have a lot of CPU being used on there (about
> 60%) which might mean you need to profile your code for CPU
> bottlenecks.  You may also be waiting on database queries, which you
> can find out with Devel::DProf or the DBI profiler.


can we run devel::DProf with mod_perl catatlyst? or do we have to use
apache::Dprof?

- Perrin
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

Jeffrey Ng
CEO, Zorpia.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070210/447d4=
b3d/attachment.htm


More information about the Catalyst mailing list