https://issues.apache.org/bugzilla/show_bug.cgi?id=50989
Summary: JSP causing memory leaks under high load,
multi-version
Product: Tomcat 6
Version: 6.0.32
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26809)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26809)
Hello World JSP
I've been setting up a scalable test bed for performance and scalability
testing of some Java web applications. To establish basic some benchmarks, I've
used a simple "Hello World" JSP (attached) with no tags or dynamic content.
This JSP consistently leaks memory on multiple Java platforms and on different
versions of Tomcat, eventually resulting in an OutOfMemory exception. If I use
an equivalent Java servlet (also attached), no such exceptions occur.
Platforms tested:
Linux 2.6.32 32-bit i586 (Ubuntu 10.4) + Java 6u24 + Tomcat 6.0.32
Linux 2.6.32 32-bit i586 (Ubuntu 10.4) + Java 6u24 + Tomcat 6.0.29
Linux 2.6.32 32-bit i586 (Ubuntu 10.4) + Java 6u24 + Tomcat 5.5.33
Mac OS X 10.6.7, 64-bit Intel i7 (quad core, iMac) + Java 1.6.0_24 + Tomcat
6.0.24
The linux tests were done in VMWare with varying memory configurations for both
the VM image and the JVM. Most-used config was 768MB VM with -Xmx512MB for the
JVM.
The Mac OS X tests were done on a JVM with -Xmx2GB.
Tests were driven by either Grinder or apache bench (ab) using 5-10 active
workers. For the -Xmx512MB configuration, a memory error occurs after roughly
250,000 requests.
Note that the JSP starts to "stutter" somewhat earlier, I assume due to garbage
collection overheads as the memory limit approaches.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]