Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@www.apache.org Received: (qmail 61693 invoked from network); 25 Feb 2005 18:56:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Feb 2005 18:56:47 -0000 Received: (qmail 55610 invoked by uid 500); 25 Feb 2005 18:56:46 -0000 Delivered-To: apmail-jakarta-taglibs-dev-archive@jakarta.apache.org Received: (qmail 55356 invoked by uid 500); 25 Feb 2005 18:56:45 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Developers List" Reply-To: "Tag Libraries Developers List" Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 55343 invoked by uid 99); 25 Feb 2005 18:56:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail75.messagelabs.com (HELO mail75.messagelabs.com) (216.82.255.83) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 25 Feb 2005 10:56:44 -0800 X-VirusChecked: Checked X-Env-Sender: kris@dotech.com X-Msg-Ref: server-10.tower-75.messagelabs.com!1109357801!29653467!1 X-StarScan-Version: 5.4.11; banners=-,-,- X-Originating-IP: [64.80.105.37] Received: (qmail 11207 invoked from network); 25 Feb 2005 18:56:41 -0000 Received: from brutus.dotech.com (64.80.105.37) by server-10.tower-75.messagelabs.com with SMTP; 25 Feb 2005 18:56:41 -0000 Received: from brutus.dotech.com (dotech.com [127.0.0.1]) by brutus.dotech.com (8.12.11/8.12.11) with ESMTP id j1PIuepg022574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Feb 2005 13:56:40 -0500 Received: (from apache@localhost) by brutus.dotech.com (8.12.11/8.12.11/Submit) id j1PIuedB022571; Fri, 25 Feb 2005 13:56:40 -0500 Received: from titan.paychex.com (titan.paychex.com [141.123.100.69]) by webmail.dotech.com (IMP) with HTTP for ; Fri, 25 Feb 2005 13:56:40 -0500 Message-ID: <1109357800.421f74e816553@webmail.dotech.com> Date: Fri, 25 Feb 2005 13:56:40 -0500 From: Kris Schneider To: Tag Libraries Developers List Subject: Re: Memory Leak in ELEvaluator (cont'd...) References: <00cd01c51a8f$9f4b87e0$3510a8c0@Toronto.date.com> <421E22F0.1040606@Sun.COM> In-Reply-To: <421E22F0.1040606@Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 141.123.100.69 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Here's an approach to dynamically generating unique expressions that might work as a test. elcache.jsp: ------------ <%@ page import="java.io.*" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <% String genPath = pageContext.getServletContext().getRealPath("/generated.jsp"); PrintStream ps = null; try { ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(genPath, false), 4096)); ps.println("<%" + "@ taglib prefix=\"c\" uri=\"http://java.sun.com/jstl/core\" %\>"); ps.println(""); ps.println(""); ps.println("Generated"); ps.println("
    "); long time = System.currentTimeMillis(); for (int i = 0; i < 100; i++) { long value = time + i; String var = "v_" + value; ps.print("
  • "); ps.print(""); ps.print(""); ps.println("
  • "); } ps.println("
"); } catch (FileNotFoundException exc) { exc.printStackTrace(); } finally { if (ps != null) { ps.close(); } } %> EL Cache Test

EL Cache Test

If you drop this into TC's $CATALINA_HOME/webapps/ROOT and add the JSTL libs to $CATALINA_HOME/webapps/ROOT/WEB-INF/lib, it should do what you want. I tested this with TC 4.1.31 and Standard 1.0.6, but didn't do any sort of profiling. If you don't see the output from generated.jsp change for each request, try increasing the refresh interval. -- Kris Schneider D.O.Tech --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org