Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 633B418DF3 for ; Mon, 10 Aug 2015 08:35:22 +0000 (UTC) Received: (qmail 77626 invoked by uid 500); 10 Aug 2015 08:35:16 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 77577 invoked by uid 500); 10 Aug 2015 08:35:16 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 77564 invoked by uid 99); 10 Aug 2015 08:35:15 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2015 08:35:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2E344C0CE8 for ; Mon, 10 Aug 2015 08:35:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fGA6_NAktkh9 for ; Mon, 10 Aug 2015 08:35:00 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 446A731BD6 for ; Mon, 10 Aug 2015 08:35:00 +0000 (UTC) Received: by wibhh20 with SMTP id hh20so140162729wib.0 for ; Mon, 10 Aug 2015 01:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ptZv06X62r5ffoS0Q+hs/BlxkXtRDdN4ZNdMTCCVxvQ=; b=zmZS5iUtYzbrILczY3lm/leh2AFjonRfiERDGHp2HnVBa/D/uHh992m7hm2+JZ1Vac 6kS+2h7FK9wsZ/eLjX7H9rXGIRREdnlYLk6PL6LvydP+Aah3tVDtdSM2ZWeQ/CCz2bOk p8CgrJdGijXxKD3JIV6AnvZuKAsSpl9zhJfMVEVBHO28pUxwLvLYjI1b6wqGVBfFdDC0 s0V8fYgGF8H/OmNGvo2g1ZBBYiwmoLKNYxvfPN8aalwWFiwd97fERa6/3Otlcfmj/CTX IDgN2ADy416YEFp3CFpZmD2E3+lfRJ8iK8VlKFYQQpvKXClEeI81MGXZJhcDAHNxgRJm 3XBQ== MIME-Version: 1.0 X-Received: by 10.194.78.84 with SMTP id z20mr44623676wjw.141.1439195699050; Mon, 10 Aug 2015 01:34:59 -0700 (PDT) Received: by 10.28.226.134 with HTTP; Mon, 10 Aug 2015 01:34:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 Aug 2015 10:34:58 +0200 Message-ID: Subject: Re: AtmosphereBehavior - hard reference to page object From: Daniel Stoch To: Wicket Users Content-Type: text/plain; charset=UTF-8 Hi, Ok, EventBus stores only pageId. But Atmosphere framework keeps all AtmosphereResourceEventListeners which are implemented by AtmosphereBehavior - so I think this is a place when Atmosphere keeps references to all registered pages. -- Daniel On Tue, Jul 28, 2015 at 9:33 AM, Martin Grigorov wrote: > Hi, > > I see no problem here. > Wicket-Atmosphere keeps the pageId, not the page: > https://github.com/apache/wicket/blob/3eba671c0770b0167f2d83ebf8924b28917316c9/wicket-experimental/wicket-atmosphere/src/main/java/org/apache/wicket/atmosphere/EventBus.java#L253 > > Later uses it at > https://github.com/apache/wicket/blob/3eba671c0770b0167f2d83ebf8924b28917316c9/wicket-experimental/wicket-atmosphere/src/main/java/org/apache/wicket/atmosphere/AtmosphereRequestHandler.java#L76 > > Martin Grigorov > Freelancer. Available for hire! > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Mon, Jul 20, 2015 at 1:54 PM, Daniel Stoch > wrote: > >> Hi, >> >> In Wicket (AFAIK) we keeps only actual page reference in a web >> session, all other pages as serialized to a page store. >> AtmosphereBehavior registers itself as a listener to >> AtmosphereResource object. Because of this Atmosphere keeps references >> to all registered pages (until such resource expires). I think it >> could be a problem in high load applications: theses hard references >> could eat all memory. >> >> What do you think: is it a problem or not (and I am wrong in this case)? >> >> -- >> Best regards, >> Daniel >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org