Google Groups Home
Help | Sign in
Mach-II 1.6 Memory Footprint
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  20 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Hussein Grant  
View profile
 More options May 8, 10:39 am
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Thu, 8 May 2008 07:39:50 -0700 (PDT)
Local: Thurs, May 8 2008 10:39 am
Subject: Mach-II 1.6 Memory Footprint
Hi,

I was recently using the new flex server monitor in ColdFusion 8 and
noticed that a single Mach-II application utilizes around 20mb in the
Application scope memory. To ensure that this just wasn't my
particular application doing something weird, I downloaded the Mach-II
pet market sample, started it up and got a similar reading. The thing
is, this is just "one" simple app. I wonder what would happen if I
started up a huge multi level application. Would 20mb be multiplied by
the number of sub apps I have running? If that is the case wouldn't
this be really pushing it? Or is there a better way to setup sub
applications without assigning a new MachII_App_Key, therefore
minimizing the creation of dozens of app instances?

Thanks,
Hussein


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Woodward  
View profile
 More options May 8, 11:15 am
From: "Matt Woodward" <mpwoodw...@gmail.com>
Date: Thu, 8 May 2008 11:15:43 -0400
Local: Thurs, May 8 2008 11:15 am
Subject: Re: [Mach-II] Mach-II 1.6 Memory Footprint
Be aware there is a baseline memory utilization for the framework, so
no, this wouldn't be 20MB multiplied by the number of apps.

Mach-II is used on numerous large, high-traffic applications so you
needn't worry there are any gross inefficiencies in the framework
itself.

--
Matt Woodward
mpwoodw...@gmail.com
http://www.mattwoodward.com

Please do not send me proprietary file formats such as Word,
PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hussein Grant  
View profile
 More options May 8, 3:26 pm
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Thu, 8 May 2008 12:26:07 -0700 (PDT)
Local: Thurs, May 8 2008 3:26 pm
Subject: Re: Mach-II 1.6 Memory Footprint
Thank you.

On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 8, 3:50 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Thu, 8 May 2008 19:50:44 +0000
Local: Thurs, May 8 2008 3:50 pm
Subject: Re: [Mach-II] Re: Mach-II 1.6 Memory Footprint
Also, remember that except for the RequestHandler, EventContext  and Event objects which are created for each request, the entire framework is loaded as singletons.

.Peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hussein Grant  
View profile
 More options May 14, 12:28 pm
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Wed, 14 May 2008 09:28:25 -0700 (PDT)
Local: Wed, May 14 2008 12:28 pm
Subject: Re: Mach-II 1.6 Memory Footprint
Thanks for the reply. I have another question although not related to
Mach-II specifically. I am experimenting with Hierarchical components
and Dependency Injection. I ran into a strange scenario whereby my
sample application's memory grows at a crazy rate every time a new
instance (reason why I thought it was Mach-II, but it is not). There
is absolutely no real data in my sample components, just some dummy
functions. It has gotten to 1mb. I am most likely doing something
wrong but wonder if anyone has ever experienced similar situations and
the remedy for such. Sorry but I can't post a sample, there is too
much all over the place since it is still experimental, but maybe
something mentioned here from another's own experience might turn on
the light bulb in my mind.
Any thoughts in general as to what could cause bloated memory usage by
components could help too, It doesn't have to be specific to my case.
I couldn't find anything to help online so this is my somewhat last
resort. Thanks in advance.

On May 8, 3:50 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hussein Grant  
View profile
 More options May 14, 12:30 pm
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Wed, 14 May 2008 09:30:04 -0700 (PDT)
Local: Wed, May 14 2008 12:30 pm
Subject: Re: Mach-II 1.6 Memory Footprint
Correct "It has gotten to 1mb...."
I meant 1GB.

On May 14, 12:28 pm, Hussein Grant <hussein.gr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hussein Grant  
View profile
 More options May 15, 1:00 pm
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Thu, 15 May 2008 10:00:32 -0700 (PDT)
Local: Thurs, May 15 2008 1:00 pm
Subject: Re: Mach-II 1.6 Memory Footprint
An update.

I'm doing something similar to how the Application Manager object
instance is copied to all the sub managers in Mach-II. I realized that
when I removed each referenced copy of the main component instance
from my sub components, the memory decreases by 20 MB plus. What the
Hell? There is hardly anything in there to begin with. I hope I'm not
being an annoyance, but I feel this is not something very common with
Coldfusion. I've taken my test App out of Mach-II and the results are
the same. I will try dismantling the whole thing and reassemble
consciously and hope I can fine the buggy culprit. Any suggestions are
still welcomed.

On May 14, 12:30 pm, Hussein Grant <hussein.gr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Kotek  
View profile
 More options May 15, 3:20 pm
From: "Brian Kotek" <brian...@gmail.com>
Date: Thu, 15 May 2008 15:20:54 -0400
Local: Thurs, May 15 2008 3:20 pm
Subject: Re: [Mach-II] Re: Mach-II 1.6 Memory Footprint

There are bugs in the memory tracking with large CFC-based apps. If you turn
it on and then init an app you'll see totally ridiculous memory usage
values, but if you init the app and then turn it on and run some normal
requests I usually see more realistic numbers.

On Wed, May 14, 2008 at 12:28 PM, Hussein Grant <hussein.gr...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hussein Grant  
View profile
 More options May 17, 11:12 am
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Sat, 17 May 2008 08:12:29 -0700 (PDT)
Local: Sat, May 17 2008 11:12 am
Subject: Re: Mach-II 1.6 Memory Footprint
Hi Brain,

I've tried it and it does do as you say, however it still didn't
decrease the memory utilized to a reasonable level. I may have to try
a totally different approach to get around this.

Thanks,
Hussein

On May 15, 3:20 pm, "Brian Kotek" <brian...@gmail.com> wrote: