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?
On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> 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?
> 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.
> On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > 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?
Also, remember that except for the RequestHandler, EventContext and Event objects which are created for each request, the entire framework is loaded as singletons.
-----Original Message-----
From: Hussein Grant <hussein.gr...@gmail.com>
Date: Thu, 8 May 2008 12:26:07 To:Mach-II for ColdFusion <mach-ii-for-coldfusion@googlegroups.com>
Subject: [Mach-II] Re: Mach-II 1.6 Memory Footprint
Thank you.
On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:
> 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.
> On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > 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 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:
> 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
> -----Original Message-----
> From: Hussein Grant <hussein.gr...@gmail.com>
> Date: Thu, 8 May 2008 12:26:07
> To:Mach-II for ColdFusion <mach-ii-for-coldfusion@googlegroups.com>
> Subject: [Mach-II] Re: Mach-II 1.6 Memory Footprint
> Thank you.
> On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:
> > 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.
> > On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > > 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 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:
> > 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
> > -----Original Message-----
> > From: Hussein Grant <hussein.gr...@gmail.com>
> > On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:
> > > 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.
> > > On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > > > 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?
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:
> Correct "It has gotten to 1mb...."
> I meant 1GB.
> On May 14, 12:28 pm, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > 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:
> > > Also, remember that except for the RequestHandler, EventContext and Event objects which are created for each request, the entire framework is loaded as singletons.
> > > On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:
> > > > 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.
> > > > On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <hussein.gr...@gmail.com> wrote:
> > > > > 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?
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:
> 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: > > 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
> > -----Original Message----- > > From: Hussein Grant <hussein.gr...@gmail.com>
> > On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote: > > > 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.
> > > On Thu, May 8, 2008 at 10:39 AM, Hussein Grant < > hussein.gr...@gmail.com> wrote:
> > > > 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?
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:
> 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:
> > 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:
> > > Also, remember that except for the RequestHandler, EventContext and
> > Event objects which are created for each request, the entire framework is
> > loaded as singletons.
> > > On May 8, 11:15 am, "Matt Woodward" <mpwoodw...@gmail.com> wrote:
> > > > 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.
> > > > On Thu, May 8, 2008 at 10:39 AM, Hussein Grant <
> > hussein.gr...@gmail.com> wrote:
> > > > > 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?