David:
Thanks for having a look.  Curious about that missing dependency - i
guess it's in the pom.xml but not really used.

Anyway, I'll digest your recommendations and have a go at it.  The
scenario I have running right now is one page open (and therefore its
session) for a very long time.  While that's not a terribly realistic
scenario, it probably is an indicator of why it did run out of memory
and lock up in the real deployment.

Cheers, Mark

ps - did fix the project in drop.io.  I guess in reality the pom
should make sure to point to a repository where all the dependencies
exist, vs. just having installed locally.

On Jan 21, 10:38 am, David Pollak <[email protected]>
wrote:
> On Wed, Jan 20, 2010 at 9:28 PM, mark chance <[email protected]> wrote:
> > I did post the project to drop.io -http://drop.io/memtest.
>
> The project does not build:
>
>   Path to dependency:
>       1) com.peopledesigned:memtest:war:1.0-SNAPSHOT
>       2) org.jfree:jcommon:jar:1.0.16
>
> Looking at your code, each of the functions created/passed as part of the
> SHtml.ajaxCall(), etc. calls are retained for the duration of the session.
> Lift garbage collects these references if there's not seen on a page for 10
> minutes.  However, if the GUIDs are created within the scope of a
> CometActor, the function is retained until the CometActor is released (in
> your case, for the length of the session).
>
> There are a couple of ways to deal with this:
>
>    - Create a single SHtml.ajaxCall instance as part of the CometActor
>    (rather than on each partialUpdate).
>    - Use the CometActor's built-in JSON handler to send a message from the
>    browser to the server.  See CometActor.handleJson()
>
> The latter is the best bet for handling rich interactions with the
> CometActor from the client without creating lots and lots of functions.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" 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/liftweb?hl=en.

Reply via email to