From users-return-60348-apmail-myfaces-users-archive=myfaces.apache.org@myfaces.apache.org Thu Nov 29 22:03:55 2012 Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 862BAEBDE for ; Thu, 29 Nov 2012 22:03:55 +0000 (UTC) Received: (qmail 45944 invoked by uid 500); 29 Nov 2012 22:03:54 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 45914 invoked by uid 500); 29 Nov 2012 22:03:54 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 45906 invoked by uid 99); 29 Nov 2012 22:03:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 22:03:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.220.181 as permitted sender) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 22:03:48 +0000 Received: by mail-vc0-f181.google.com with SMTP id fy27so11540437vcb.12 for ; Thu, 29 Nov 2012 14:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=02wnipYZAdeYBXyBKucSgK3iI9iX6c3AQ3fOWncfZ3o=; b=KGjSSmxY4onuhgPxgwR9kvFneOXdLilcgn4KCdYHCM+plZ25n9WKfJ3oK68zG0mcM8 4EBpNyDZIdKP5jgVx+HialW9zYv0aPF5hAX5V0ws72op45gz8eS/66o8rdTMOJSDEa5M MjQ7uAt4qKcJ8qaD8w/HFAcxA1jD5XqRl1wLWQGzn0fpEy6sb2m+VsdualKRVBx78B2R sZjVfgrPhi94TLzC+kr3hB6PA0rNrW/x/+/+q03YXRwkSgm1aeWEn1fcETUUz8ZEFNl6 GCpywIHD+0P0tbd0BImLtR0z0LSo34HJhNnOJmzlSVStaOgvstbwO1DYCGAVGCsY5jjf mP4w== Received: by 10.220.16.4 with SMTP id m4mr32798832vca.43.1354226607123; Thu, 29 Nov 2012 14:03:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.67.51 with HTTP; Thu, 29 Nov 2012 14:03:06 -0800 (PST) In-Reply-To: References: From: Gerhard Petracek Date: Thu, 29 Nov 2012 23:03:06 +0100 Message-ID: Subject: Re: CODI: Exclude windowId from certain pages To: MyFaces Discussion Content-Type: multipart/alternative; boundary=bcaec54ee728dcee2804cfa97323 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54ee728dcee2804cfa97323 Content-Type: text/plain; charset=ISO-8859-1 hi andreas, first of all: welcome @ myfaces! there are different approaches - e.g. you can use urls with windowId=automatedEntryPoint (see the javadoc in WindowContextManager) regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2012/11/29 Andreas Kaiser > Hi everybody > > I have following setup : > > Glassfish 3.1.2.2 > Weld > Java EE6 + JSF + CDI + JPA > CODI: 1.0.5 > > My problem: > > We use and like the windowId Feature from CODI. But it causes some big > problems on some pages which are specially created for stress testing. > > These pages are accessed from 500+ clients generated from JMeter. > Every client acts as a own browser. > > This pages (RequestScoped) can be accessed without login. Therefore CODI > generates a new windowId for every client. > > The problem is that the JMeter tests run multiple times. Due to this the > Hashmap in JSFWindowContext.java consums a lot of memory until the > Glassfish has no space left which leads into a 100 % CPU usage because the > garbage collector tries to free a even the last few bytes. > > My question is > 1. Is it possible to create windowIds only a user is logged in > 2. Is there an option to change the default behavior > 3. Can i exclude some pages being handled by the codi JSFWindowManager > > > > > Regards > --bcaec54ee728dcee2804cfa97323--