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 2FB0410B98 for ; Sat, 7 Sep 2013 04:19:07 +0000 (UTC) Received: (qmail 57466 invoked by uid 500); 7 Sep 2013 04:19:06 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 57047 invoked by uid 500); 7 Sep 2013 04:18:58 -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 57032 invoked by uid 99); 7 Sep 2013 04:18:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Sep 2013 04:18:55 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,PLING_QUERY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ertiop93@gmail.com designates 209.85.212.181 as permitted sender) Received: from [209.85.212.181] (HELO mail-wi0-f181.google.com) (209.85.212.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Sep 2013 04:18:49 +0000 Received: by mail-wi0-f181.google.com with SMTP id c10so1633014wiw.2 for ; Fri, 06 Sep 2013 21:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kykajTXSyi1webXuuoDiYNcggLLm6dLA1XDngt0m6aQ=; b=Lil6FMDSXWmjknrfL9y/MygbnID2DcRkOagoKLAqupc7UFvcjQPAb6w9es5xUwJUri bMpr5FHdwmg76ThcxO65tddHsv89Dvj2RDujy0ZC+ASKzJ1WOlvcujlYeQddtEh2Goi0 +PHDXZXHZiLvdY0H6RAE7AHQ4QcjPpOX/56gPDyCFd9s1v2XawAryF3h0puKWE2xvzqb 9wylqBtn/kF+ks12Oy2aaZ0dV/2YFZVSVWLkog2TvnVTnj80dscq5LWmFhWkSGwLmXs7 tj+XSs0LetovxdyR34GOuhUMCEhSRTnX439at1CCcnVzHISW1/aXgAtV71UbNhzcjAiH P+rg== MIME-Version: 1.0 X-Received: by 10.180.9.99 with SMTP id y3mr786208wia.61.1378527508958; Fri, 06 Sep 2013 21:18:28 -0700 (PDT) Received: by 10.216.52.194 with HTTP; Fri, 6 Sep 2013 21:18:28 -0700 (PDT) Date: Sat, 7 Sep 2013 09:48:28 +0530 Message-ID: Subject: FacesServlet.service() method eating too much time while serving requests (high self-time) ?! From: Ertio Lew To: dev@myfaces.apache.org, MyFaces Discussion Content-Type: multipart/alternative; boundary=001a11c24d507c12b604e5c37220 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c24d507c12b604e5c37220 Content-Type: text/plain; charset=ISO-8859-1 I was just trying out some profiling experiments with my JSF project using Netbeans based Profiler. However I found a very surprising results. I found JSF's *FacesServlet.service()* method to be consuming most of the time while requests were being served. I do serve content from databases into my JSF pages but still I found major time lag was due to *high self time* of * service()* method. Here is the snapshot of the profiling results:- [image: See the high self-time of FacesServlet service() method] Why is this happening, what's happening so expensive within this method that causes such high self time ? *I am running Myfaces 2.1.12 in Production mode on Tomcat 7.0.42.* *This question was also posted at StackOverflow here .* --001a11c24d507c12b604e5c37220--