Hi there,
As I see you are trying to do the same task all togather. All Ape
(Server) objects are persistent
info.user.setProperty('ClientName', params.name);
equivalent info.user.getProperty('name');

info.user.setProperty('ClientIP', info.ip);
equivalent info.user.getProperty('ip');

I believe when you set additional property when the user objects are
destroyed all property are not destoyed and the customs one are
remaining and using the memory.

I would also like to know when user.left event is called what all
objects are destroyed ?

Cheers!!
On May 19, 3:36 am, D J G C <[email protected]> wrote:
> 1. Does this really apply?
>
> Which seems hard to beleive: Is Javascript (Spidermonkey) not able to handel
> the scope correctly? How can this "object" be accessed (info seems not to be
> globally defined, are you talking about Ape.info)?
>
> 2. If yes, it is a very important detail that everybody has to know, as
> scalablity, which includes memory manangement, is the most
> important/critical of APE's features!
>
> And all examples in the docs/wiki should be changed?
>
> Thanks,
>
> Johannes
>
> -------- Original Message  --------
> Subject: [APE Project] Re: Server memory issues
> From: Manas B <[email protected]>
> To: APE Project <[email protected]>
> Date: 17.05.2010 19:11
>
>
>
>
>
> > try using cmd or any other name in place of info in the function
> > parameters as info is an object in APE Server. This may be the cause
> > of the problem.
>
> > On Apr 2, 8:21 pm, mjcoder<[email protected]>  wrote:
> >> Thanks for the quick response, Anthony.
>
> >> For custom server side modules, I have just the following cmd hook
> >> that stores information (ip, name, connection time, etc) with the user
> >> session:
>
> >> Ape.registerHookCmd('connect', function(params, info) {
> >>          info.user.setProperty('ClientName', params.name);
> >>          info.user.setProperty('ClientIP', info.ip);
> >>          info.user.setProperty('ClientUserAgent',
> >> params.clientUserAgent);
> >>          info.user.setProperty('ClientConnectTime', new
> >> Date().toTimeString());
> >>          });
>
> >> And, I've disabled all other server side js modules but the following:
> >>          include("framework/mootools.js");
> >>          include("framework/Http.js");
> >>          include("framework/userslist.js");
> >>          include("utils/utils.js");
> >>          include("commands/proxy.js");
> >>          include("commands/inlinepush.js");
>
> >> Regards,
> >> Matt
>
> >> On Apr 1, 5:03 pm,<[email protected]>  wrote:
>
> >>> Hi,
>
> >>> Indeed there is a garbage collector in the javascript engine.
> >>> Btw, it's possible that some memory leak remain.
>
> >>> Do you have a custom javascript module?
>
> >>> Anthony C.
>
> >>> On Thu, 1 Apr 2010 14:55:18 -0700 (PDT), mjcoder<[email protected]>
> wrote:
> >>>> Hi, we are running the latest dev version of APE from github and
> >>>> everything seems pretty stable, but it appears the server may have a
> >>>> memory management issue.
>
> >>>> As users connected, the memory the APE server consumed continued to
> >>>> grow and never contracted.  For example, after about 3 hours, 3,597
> >>>> unique users had connected to the APE server and it was consuming
> >>>> ~260MB of RAM.  This grew from an initial memory consumption of ~60MB
>
> >>>> Most of these users did not stay connected, and therefore my guess for
> >>>> the constant memory consumption is that the APE server is not expiring
> >>>> stale sessions.  If that's the case, does APE have a garbage
> >>>> collection mechanism that could clean up these stale sessions and free
> >>>> the memory? Or, is there a manual method of accomplishing this?
>
> >>>> Any help is appreciated.
>
> >>>> Regards,
> >>>> Matt
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website :http://www.ape-project.org/
> Git Hub :http://github.com/APE-Project/

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to