Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4FF69200D45 for ; Thu, 23 Nov 2017 08:29:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E673160C10; Thu, 23 Nov 2017 07:29:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 93617160BEF for ; Thu, 23 Nov 2017 08:29:07 +0100 (CET) Received: (qmail 74540 invoked by uid 500); 23 Nov 2017 07:29:06 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 74526 invoked by uid 99); 23 Nov 2017 07:29:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2017 07:29:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C9041C8D8D for ; Thu, 23 Nov 2017 07:29:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.311 X-Spam-Level: X-Spam-Status: No, score=-99.311 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IPldyBK1jkVa for ; Thu, 23 Nov 2017 07:29:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9DD845FC9D for ; Thu, 23 Nov 2017 07:29:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6DDAEE0F80 for ; Thu, 23 Nov 2017 07:29:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 393E0241A3 for ; Thu, 23 Nov 2017 07:29:01 +0000 (UTC) Date: Thu, 23 Nov 2017 07:29:01 +0000 (UTC) From: "Yasser Zamani (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4895) s:select tags performance issue after upgrading to 2.5.1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Nov 2017 07:29:08 -0000 [ https://issues.apache.org/jira/browse/WW-4895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16263911#comment-16263911 ] Yasser Zamani commented on WW-4895: ----------------------------------- I tested following configuration and could not reproduce your problem. Here it takes about a few seconds in first call but then, it takes less than half second to load (YourKit profiler shows these). I think there is something in your side: {code:java} public class SelectTagTestAction { private List exampleList = new ArrayList<>(); public List getExampleList() { return exampleList; } public String execute() throws Exception { for (int i = 0; i < 250; i++) { SelectTagElement ste = new SelectTagElement(); ste.setLabel("" + i); ste.setValue("" + i); this.exampleList.add(ste); } return "success"; } } {code} {code:xml} /WEB-INF/content/SelectTagTest.jsp {code} {code:jsp} <%@taglib prefix="s" uri="/struts-tags"%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> selectTagTestAction {code} > s:select tags performance issue after upgrading to 2.5.1.3 > ---------------------------------------------------------- > > Key: WW-4895 > URL: https://issues.apache.org/jira/browse/WW-4895 > Project: Struts 2 > Issue Type: Bug > Components: Core Tags > Affects Versions: 2.5.13 > Environment: IBM Websphere 8.5 , apache 2.x > Reporter: Harsh Choudhary > Priority: Critical > Labels: performance > Fix For: 2.5.x > > > We recently upgraded from Struts 2.1(don't ask) to Struts 2.5.13 , while the upgrade process was smooth, we are facing some performance issue while JSP is rendering at runtime. This JSP used to load in less then 2 secs before and now it's taking around 40 secs to load. It's a very simple JSP with some text fields and a few select fields. I am just posting a simple select that is taking around 20 secs, I cannot post the whole code because of obvious reasons. The time difference between the two-time statements below is around 20 secs. > I have tried to remove styles, javascript function but still it's taking a long time. Any suggestions in this regard will be helpful. This is happening most of the select boxes. > {code:html} > System.out.println("logging started"); > java.util.Date date49 = new java.util.Date(); > %> > The time is now <%= date49 %> > headerKey="-1" > list="doclist" > listKey="id" > listValue="Description" > onchange="disableErrormsg('VarLibAssetErrorDiv');" > /> > >