Re: org.apache.jasper.util.Entry object Heap Size
On 24.11.2010 21:01, Konstantin Kolinko wrote: 2010/11/24 Christopher Schultz: On 11/24/2010 6:31 AM, amitruwali wrote: Please find below information: Tomcat version: 7.0.2 JDK : Java 1.6 [Class is org.apache.jasper.util.Entry] Class exists in the jar : jasper.jar Path: /lib/jasper.jar $ wget 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.2-beta/bin/apache-tomcat-7.0.2.tar.gz' $ tar xzf apache-tomcat-7.0.2.tar.gz $ $ unzip -v apache-tomcat-7.0.2/lib/jasper.jar |grep "/Entry" 1501 Defl:N 592 61% 08-04-10 00:24 8d5f2d6a org/apache/jasper/util/Entry.class Yup, there it is. I'm trying to track down what happened to it. My svn-fu is not very good. http://svn.apache.org/viewvc?view=revision&revision=1028396 The whole JSP unloading functionality was refactored. As Konstantin remarked, Entry is now an inner class. I do hope there's no leak and the observed leak was due to a race condition I noticed in the original code. It would be very helpful, if you could check using 7.0.5. Note that in 7.0.5 as an add-on there is also - an option to unload JSPs by idle time - a way to track the JSP queue behaviour via JMX Is your Tomcat running under high load? Anything special to the JSPServlet configuration in conf/web.xml? Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.jasper.util.Entry object Heap Size
2010/11/24 Christopher Schultz : > On 11/24/2010 6:31 AM, amitruwali wrote: >> Please find below information: >> >> Tomcat version: 7.0.2 >> JDK : Java 1.6 >> [Class is org.apache.jasper.util.Entry] >> Class exists in the jar : jasper.jar >> Path: /lib/jasper.jar > $ wget > 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.2-beta/bin/apache-tomcat-7.0.2.tar.gz' > $ tar xzf apache-tomcat-7.0.2.tar.gz > $ $ unzip -v apache-tomcat-7.0.2/lib/jasper.jar |grep "/Entry" > 1501 Defl:N 592 61% 08-04-10 00:24 8d5f2d6a > org/apache/jasper/util/Entry.class > > Yup, there it is. > > I'm trying to track down what happened to it. My svn-fu is not very good. > http://svn.apache.org/viewvc?view=revision&revision=1028396 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: org.apache.jasper.util.Entry object Heap Size
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: org.apache.jasper.util.Entry object Heap Size > In the meantime, you should probably upgrade to 7.0.4 which > is the latest in the 7.0.x line. I'd recommend skipping 7.0.4 and getting Tomcat 7.0.5 from svn. Mark tagged it today, so you can get it from here: http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_5/ I would expect a 7.0.5 release sometime next week. The class in question is completely removed from 7.0.5, so whatever problem was causing the apparent memory leak won't happen again - at least in that form. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: org.apache.jasper.util.Entry object Heap Size
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit, On 11/24/2010 6:31 AM, amitruwali wrote: > Please find below information: > > Tomcat version: 7.0.2 > JDK : Java 1.6 > [Class is org.apache.jasper.util.Entry] > Class exists in the jar : jasper.jar > Path: /lib/jasper.jar $ wget 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.2-beta/bin/apache-tomcat-7.0.2.tar.gz' $ tar xzf apache-tomcat-7.0.2.tar.gz $ $ unzip -v apache-tomcat-7.0.2/lib/jasper.jar |grep "/Entry" 1501 Defl:N 592 61% 08-04-10 00:24 8d5f2d6a org/apache/jasper/util/Entry.class Yup, there it is. I'm trying to track down what happened to it. My svn-fu is not very good. In the meantime, you should probably upgrade to 7.0.4 which is the latest in the 7.0.x line. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkztbQkACgkQ9CaO5/Lv0PDm3ACdEEn8BihyZLb1nRh1kJFNpV8/ QMgAoKCd0ZSJDEuraAo+UoqURN+Wq5e1 =tc+Y -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.jasper.util.Entry object Heap Size
Hello Mark, Please find below information: Tomcat version: 7.0.2 JDK : Java 1.6 Class exists in the jar : jasper.jar Path: /lib/jasper.jar Thanks to feedback, Amit Mark Thomas wrote: > > On 23/11/2010 11:02, amitruwali wrote: >> >> In one of our internet applications we are getting the heap memory >> consumption of almost 1.3 GB for org.apache.jasper.util.Entry object >> during >> analyzing the heap dump via eclipse memory analyzer >> tool. >> >> Now internally this object is pointing to one of our jsp's. The reference >> is >> as follows: >> >> org.apache.jasper.util.Entry -> content -> jspURI -> value = >> /custom/company.jsp >> >> The total number of objects of this class is 60,000. >> Could you please indicate from the Tomcat perspective - when are the >> objects >> of this class created and under what scenarios would heap usage be to >> this >> high level? > > There is no such class in any current Tomcat version. Since you haven't > told us which version you are using, there is little more we can do to > help. > > Mark > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/org.apache.jasper.util.Entry-object-Heap-Size-tp30283792p30295968.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.jasper.util.Entry object Heap Size
On 23/11/2010 11:02, amitruwali wrote: > > In one of our internet applications we are getting the heap memory > consumption of almost 1.3 GB for org.apache.jasper.util.Entry object during > analyzing the heap dump via eclipse memory analyzer > tool. > > Now internally this object is pointing to one of our jsp's. The reference is > as follows: > > org.apache.jasper.util.Entry -> content -> jspURI -> value = > /custom/company.jsp > > The total number of objects of this class is 60,000. > Could you please indicate from the Tomcat perspective - when are the objects > of this class created and under what scenarios would heap usage be to this > high level? There is no such class in any current Tomcat version. Since you haven't told us which version you are using, there is little more we can do to help. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org