How much RAM do your Catalyst apps use up?

View: New views
3 Messages — Rating Filter:   Alert me  

How much RAM do your Catalyst apps use up?

by kakimoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

Re: How much RAM do your Catalyst apps use up?

by Tobias Kremer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 24, 2009 at 10:51 AM, <kakimoto@...> 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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

Re: How much RAM do your Catalyst apps use up?

by Dan Dascalescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 24, 2009 at 02:05, Tobias Kremer<tobias.kremer@...> wrote:
> On Wed, Jun 24, 2009 at 10:51 AM, <kakimoto@...> 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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/