Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

How much RAM do your Catalyst apps use up?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


kakimoto at tpg

Jun 24, 2009, 1:51 AM

Post #1 of 5 (593 views)
Permalink
How much RAM do your Catalyst apps use up?

Hi, guys,

I have a virtual machine with 256MB of ram. When I run my catalyst app
(ie myapp_server.pl) in the day, it's fine. NEvertheless, when I run my
app from 6pm onwards til midnight, a few clicks on the app to retrieve
some data (the same way I use it in the mornings), and the whole machine
hangs up on me.

It's an ubuntu Hardy Heron machine that I am using on VM. The ram's
prolly a tad too litte I suppose to run my application which uses
Postgresql 8.3.

Just want to get an idea, how much RAM do your Catalyst apps use or do
your machines that run the Catalyst app actually have allocated?

Thank you, all!


K. akimoto

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


kakimoto at tpg

Jun 24, 2009, 1:51 AM

Post #2 of 5 (538 views)
Permalink
How much RAM do your Catalyst apps use up? [In reply to]

Hi, guys,

I have a virtual machine with 256MB of ram. When I run my catalyst app
(ie myapp_server.pl) in the day, it's fine. NEvertheless, when I run my
app from 6pm onwards til midnight, a few clicks on the app to retrieve
some data (the same way I use it in the mornings), and the whole machine
hangs up on me.

It's an ubuntu Hardy Heron machine that I am using on VM. The ram's
prolly a tad too litte I suppose to run my application which uses
Postgresql 8.3.

Just want to get an idea, how much RAM do your Catalyst apps use or do
your machines that run the Catalyst app actually have allocated?

Thank you, all!


K. akimoto

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


toby.corkindale at strategicdata

Jun 24, 2009, 2:01 AM

Post #3 of 5 (535 views)
Permalink
Re: How much RAM do your Catalyst apps use up? [In reply to]

----- kakimoto[at]tpg.com.au wrote:
> Hi, guys,
>
> I have a virtual machine with 256MB of ram. When I run my catalyst
> app
> (ie myapp_server.pl) in the day, it's fine. NEvertheless, when I run
> my
> app from 6pm onwards til midnight, a few clicks on the app to
> retrieve
> some data (the same way I use it in the mornings), and the whole
> machine
> hangs up on me.

I have a few Ubuntu Server virtual machines with 256 MB of ram allocated, which use Postgres 8.3 and Catalyst (under apache w/mod_perl), and they run fine for single-user usage of the application. (They're for testing.. I also have some catalyst+postgres apps running on live sites, but I've never tried those on so little ram!)

I'm surprised the entire machine locks up -- have you tried diagnosing what is going on when that happens?
(eg. checking log files)
Is it defnitely an OOM problem, or something else manifesting?

-Toby

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


tobias.kremer at gmail

Jun 24, 2009, 2:05 AM

Post #4 of 5 (543 views)
Permalink
Re: How much RAM do your Catalyst apps use up? [In reply to]

On Wed, Jun 24, 2009 at 10:51 AM, <kakimoto[at]tpg.com.au> wrote:>
> Just want to get an idea, how much RAM do your Catalyst apps use or do
> your machines that run the Catalyst app actually have allocated?

Our app processes usually hover between 60-70 MB (and are killed at 80
MB). We were able to serve approximately 12 million page impressions a
month without problems on a moderate piece of hardware that has 2 gigs
of RAM.

HTH,

--Tobias

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


ddascalescu+catalyst at gmail

Jun 24, 2009, 2:26 AM

Post #5 of 5 (537 views)
Permalink
Re: How much RAM do your Catalyst apps use up? [In reply to]

On Wed, Jun 24, 2009 at 02:05, Tobias Kremer<tobias.kremer[at]gmail.com> wrote:
> On Wed, Jun 24, 2009 at 10:51 AM, <kakimoto[at]tpg.com.au> wrote:>
>> Just want to get an idea, how much RAM do your Catalyst apps use or do
>> your machines that run the Catalyst app actually have allocated?

MojoMojo, which is probably the most complex Catalyst application,
needs 60-90MB per FastCGI child, and has been running fine (8MB
swapped) on my Linode with 360MB RAM and PostgreSQL 8.3 running on it.
I only had RAM issues with MojoMojo once, when it leaked memory due to
repeatedly instantiating a Syntax::Highlight::Engine::Kate object
which apparently wasn't completely garbage collected when it went out
of scope. Moving that initialization where it got executed only once,
solved the problem.

Dan

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.