Re: Tomcat 4.1.31 - HTTPS not working intermittently | “Page Cannot be Displayed”
On 26/04/2010 07:01, :) wrote: > Please suggest in resolving this issue. thanks This question belongs on the users list. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Question about context aliases
On 26/04/2010 05:46, Konstantin Kolinko wrote: > If there are resources in the web application for the same path as > covered by an alias, these webapp resources will be ignored? I.e., > configuring an alias in context.xml can be used to overwrite parts of > the web application? Correct. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Memory leak detection and JVMTI
On 25.04.2010 23:18, Sylvain Laurent wrote: I don't understand what would be the purpose of this feature. Is it in order to really force a GC when clicking on the "Find leaks" button of the manager ? Yes If it's for that, I don't think it's worth the trouble. People really interested in fixing their leaking webapps should take a snapshot of the heap and analyze it to confirm (as advised by the manager page) and find the origin of the leak. I'm not sure whether it's worth the trouble either. I just wanted to point out that actually there is a reliable way of triggering a full GC but not from within Java code. The memory leak detection is not about finding the root cause - here you'll often need a heap dump - but a most likely reliable way of telling whether there is a webapp class loader related leak or not. That's where we need to force a GC. Regards, Rainer - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Question about context aliases
On 26.04.2010 06:46, Konstantin Kolinko wrote: 2010/4/23 Mark Thomas: On 23/04/2010 12:30, Rainer Jung wrote: On 23.04.2010 12:04, Mark Thomas wrote: On 23/04/2010 10:51, Rainer Jung wrote: On 22.04.2010 18:51, Mark Thomas wrote: On 22/04/2010 17:40, Rainer Jung wrote: Experimenting on the extreme side of things: when trying to use aliases="/=/some/path" I can't get any resource to load: - there is /some/path/test.properties - servletContext().getResourceAsStream("/test.properties") returns null. It works, once I use aliases="/myapp=/some/path" and servletContext().getResourceAsStream("/myapp/test.properties"). Is that expected? Nope. Thats broken. I see, it was because you need to remove the trailing slash and for "/" the trailing slash is the leading one too. Now using an alias with "/" naively seems to make not much sense (the webapps will break unless you move everything there). Indeed. You might as well just change the docBase. I thought about using slash in order to overwrite stuff. So the expected behaviour for an alias using "/" would be to only use the alias results, if something was actually found under the alias. I prepared a patch for that: http://people.apache.org/~rjung/patches/BaseDirContext_Alias_20100423a.patch What do you think? I think that this, combined the support for resources in JARs under META-INF/resources is adding too much complexity. Let's keep things simple unless there is a use case the current functionality can't meet. OK, so should we disallow "/" as an alias, or fix the trailing slash thing and let the user live with the resulting behaviour? I'd say it then makes more sense to disallow "/" (log a startup error) and document that and the hint about docBase. I can make the adjustments if you like (and agree). Agree, disallowing / seems the right way to go here. Go for it! If there are resources in the web application for the same path as covered by an alias, these webapp resources will be ignored? I.e., configuring an alias in context.xml can be used to overwrite parts of the web application? That's how aliases work at the moment. If the path starts with a segment for which an alias is defined, only the alias will be searched for the resource. Much like "Alias" in the Apache web server. That's why using "/" is very special, it would overwrite the whole webapp. Mark will correct me if I'm wrong ... Regards, Rainer - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49183] Odd code in setclasspath.sh
https://issues.apache.org/bugzilla/show_bug.cgi?id=49183 Mark Thomas changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||INVALID --- Comment #4 from Mark Thomas 2010-04-26 04:53:04 EDT --- As per Konstantin's comment, the eval is required. -x rather than -r is bug 12056 / r303035. -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49184] Index out of bounds exception thrown when dynamically adding Filter
https://issues.apache.org/bugzilla/show_bug.cgi?id=49184 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Mark Thomas 2010-04-26 05:17:38 EDT --- Fixed in 7.0.x and will be include in 7.0.0 onwards. Many thanks for the patch. -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r937975 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Author: markt Date: Mon Apr 26 09:17:46 2010 New Revision: 937975 URL: http://svn.apache.org/viewvc?rev=937975&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49184 Prevent ArrayIndexOutOfBoundsException Patch provided by Pid Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=937975&r1=937974&r2=937975&view=diff == --- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Apr 26 09:17:46 2010 @@ -2627,7 +2627,7 @@ public class StandardContext System.arraycopy(filterMaps, 0, results, 0, filterMapInsertPoint); results[filterMapInsertPoint] = filterMap; System.arraycopy(filterMaps, filterMapInsertPoint, results, -filterMaps.length - filterMapInsertPoint + 1, +filterMaps.length - (filterMapInsertPoint + 1), filterMaps.length - filterMapInsertPoint); filterMapInsertPoint++; - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937325 - in /tomcat/trunk/java/org/apache: catalina/ha/session/DeltaManager.java el/lang/ExpressionBuilder.java
Hi Mark, bad fix! The method getValves() only exists at CatalinaCluster! peter Am 23.04.2010 um 17:09 schrieb ma...@apache.org: Modified: tomcat/trunk/java/org/apache/catalina/ha/session/ DeltaManager.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java?rev=937325&r1=937324&r2=937325&view=diff = = = = = = = = == --- tomcat/trunk/java/org/apache/catalina/ha/session/ DeltaManager.java (original) +++ tomcat/trunk/java/org/apache/catalina/ha/session/ DeltaManager.java Fri Apr 23 15:09:58 2010 @@ -882,7 +882,7 @@ public class DeltaManager extends Cluste if(replicationValve == null) { if(container instanceof StandardContext && ((StandardContext)container).getCrossContext()) { Cluster cluster = getCluster() ; -if(cluster != null && cluster instanceof CatalinaCluster) { +if(cluster != null) { Valve[] valves = ((CatalinaCluster)cluster).getValves(); if(valves != null && valves.length > 0) { for(int i=0; replicationValve == null && i < valves.length ; i++ ){
Re: svn commit: r937975 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
I'm feeling stupid at the moment. (Or need more coffee) But why do the parenthesis make a difference? (Since only addition/subtraction is done and no multiplication - I can't tell why this fixes it) -Tim On 4/26/2010 5:17 AM, ma...@apache.org wrote: Author: markt Date: Mon Apr 26 09:17:46 2010 New Revision: 937975 URL: http://svn.apache.org/viewvc?rev=937975&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49184 Prevent ArrayIndexOutOfBoundsException Patch provided by Pid Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=937975&r1=937974&r2=937975&view=diff == --- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Apr 26 09:17:46 2010 @@ -2627,7 +2627,7 @@ public class StandardContext System.arraycopy(filterMaps, 0, results, 0, filterMapInsertPoint); results[filterMapInsertPoint] = filterMap; System.arraycopy(filterMaps, filterMapInsertPoint, results, -filterMaps.length - filterMapInsertPoint + 1, +filterMaps.length - (filterMapInsertPoint + 1), filterMaps.length - filterMapInsertPoint); filterMapInsertPoint++; - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937975 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
On 26/04/2010 11:33, Tim Funk wrote: I'm feeling stupid at the moment. (Or need more coffee) But why do the parenthesis make a difference? (Since only addition/subtraction is done and no multiplication - I can't tell why this fixes it) 100 - 10 + 1 = 91 100 - (10 + 1) = 89 Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937325 - in /tomcat/trunk/java/org/apache: catalina/ha/session/DeltaManager.java el/lang/ExpressionBuilder.java
On 26/04/2010 10:28, Peter Roßbach wrote: Hi Mark, bad fix! The method getValves() only exists at CatalinaCluster! getCluster() returns an object of type CatalinaCluster. The check wasn't doing anything apart from wasting CPU cycles. Mark peter Am 23.04.2010 um 17:09 schrieb ma...@apache.org: Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java?rev=937325&r1=937324&r2=937325&view=diff == --- tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java (original) +++ tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java Fri Apr 23 15:09:58 2010 @@ -882,7 +882,7 @@ public class DeltaManager extends Cluste if(replicationValve == null) { if(container instanceof StandardContext && ((StandardContext)container).getCrossContext()) { Cluster cluster = getCluster() ; - if(cluster != null && cluster instanceof CatalinaCluster) { + if(cluster != null) { Valve[] valves = ((CatalinaCluster)cluster).getValves(); if(valves != null && valves.length > 0) { for(int i=0; replicationValve == null && i < valves.length ; i++ ){ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r937993 - /tomcat/trunk/build.xml
Author: pero Date: Mon Apr 26 10:46:01 2010 New Revision: 937993 URL: http://svn.apache.org/viewvc?rev=937993&view=rev Log: Include .project and .classpath files to src distribution. s. http://ant.apache.org/manual/dirtasks.html#defaultexcludes to not include scm files! Modified: tomcat/trunk/build.xml Modified: tomcat/trunk/build.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=937993&r1=937992&r2=937993&view=diff == --- tomcat/trunk/build.xml (original) +++ tomcat/trunk/build.xml Mon Apr 26 10:46:01 2010 @@ -1338,8 +1338,8 @@ Apache Tomcat ${version} native binaries - - + + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937975 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Got it thanks -Tim On 4/26/2010 6:36 AM, Mark Thomas wrote: On 26/04/2010 11:33, Tim Funk wrote: I'm feeling stupid at the moment. (Or need more coffee) But why do the parenthesis make a difference? (Since only addition/subtraction is done and no multiplication - I can't tell why this fixes it) 100 - 10 + 1 = 91 100 - (10 + 1) = 89 - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937975 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
You need more coffee ;) 100 - (10 + 1) is algebraically equivalent to 100 - 10 - 1 Tim Funk wrote: Got it thanks -Tim On 4/26/2010 6:36 AM, Mark Thomas wrote: On 26/04/2010 11:33, Tim Funk wrote: I'm feeling stupid at the moment. (Or need more coffee) But why do the parenthesis make a difference? (Since only addition/subtraction is done and no multiplication - I can't tell why this fixes it) 100 - 10 + 1 = 91 100 - (10 + 1) = 89 - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org -- * * Dott. Giulio Quaresima (Ph.D) * * * * Area Reti e Servizi Web * * Ripartizione Servizi Informatici e Statistici * * Università degli Studi di Perugia * * P.zza Università 1 - 06081 Perugia (PG) * * Tel. 075 585 5183 - 075 585 5172 * * Fax 075 585 5172 * * e-mail giulio.quares...@unipg.it * * - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r937325 - in /tomcat/trunk/java/org/apache: catalina/ha/session/DeltaManager.java el/lang/ExpressionBuilder.java
HI Mark, your are right! But then we can use: CatalinaCluster cluster = getCluster() ; if(cluster != null) { Valve[] valves = cluster.getValves(); .. and also we can optimized the "for"-statement to for(Valve valve: valves) { if(valve instanceof ReplicationValve) { replicationValve = (ReplicationValve)valve ; break; } } And I think the replicationValve must be declared as volatile. Peter Am 26.04.2010 um 12:43 schrieb Mark Thomas: On 26/04/2010 10:28, Peter Roßbach wrote: Hi Mark, bad fix! The method getValves() only exists at CatalinaCluster! getCluster() returns an object of type CatalinaCluster. The check wasn't doing anything apart from wasting CPU cycles. Mark peter Am 23.04.2010 um 17:09 schrieb ma...@apache.org: Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java?rev=937325&r1=937324&r2=937325&view=diff = = = = = = = = = = --- tomcat/trunk/java/org/apache/catalina/ha/session/ DeltaManager.java (original) +++ tomcat/trunk/java/org/apache/catalina/ha/session/ DeltaManager.java Fri Apr 23 15:09:58 2010 @@ -882,7 +882,7 @@ public class DeltaManager extends Cluste if(replicationValve == null) { if(container instanceof StandardContext && ((StandardContext)container).getCrossContext()) { Cluster cluster = getCluster() ; - if(cluster != null && cluster instanceof CatalinaCluster) { + if(cluster != null) { Valve[] valves = ((CatalinaCluster)cluster).getValves(); if(valves != null && valves.length > 0) { for(int i=0; replicationValve == null && i < valves.length ; i++ ){ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49181] Exception thrown incorrectly when dynamically adding a Listener
https://issues.apache.org/bugzilla/show_bug.cgi?id=49181 Pid changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Comment #4 from Pid 2010-04-26 07:24:58 EDT --- (In reply to comment #3) > Thanks for the patch. I applied the second one to 7.0.x and it will be > included > in 7.0.x onwards. This was bugging me. I've spotted a possible error in the patch. Srv3.0 4.4.3 says "If the ServletContext was passed to the ServletContainerInitializer’s onStartup method, then the given listener MAY also implement javax.servlet.ServletContextListener in addition to..." in each subclause, implying that a class that only implements ServletContextListener should not be dynamically added. Seems crazy, but it is easy enough to fix, patch attached. I'm now reading these clauses to also mean that anything else with access to the ServletContext shouldn't be able to dynamically add classes, (e.g. in a Servlet.config(config), or another ServletContextListener), which could be a resolved by wrapping the supplied ServletContext in an object which just throws UnsupportedOperationException's for each of the relevant methods, and delegates the rest. I aim to supply a patch for this shortly. -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49181] Exception thrown incorrectly when dynamically adding a Listener
https://issues.apache.org/bugzilla/show_bug.cgi?id=49181 --- Comment #5 from Pid 2010-04-26 07:26:04 EDT --- Created an attachment (id=25353) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25353) More spec compliant way to handle dynamically added listeners -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49178] Running tomcat/6.0.26 with security manager generates ORACLE jdbc error
https://issues.apache.org/bugzilla/show_bug.cgi?id=49178 --- Comment #2 from Suresh T 2010-04-26 13:51:54 EDT --- Created an attachment (id=25356) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25356) Error log file -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49178] Running tomcat/6.0.26 with security manager generates ORACLE jdbc error
https://issues.apache.org/bugzilla/show_bug.cgi?id=49178 --- Comment #3 from Suresh T 2010-04-26 13:54:32 EDT --- (In reply to comment #1) > That looks rather odd. Could you please provide: > - the full security failure from the logs that prompted you to make this > change > - the exact entry you added to the policy file > > Thanks. hi Mark When I run the Tomcat with -security option and if the following policy grant codeBase "file:\${catalina.base}\lib\-" { permission java.security.AllPermission; }; is not entered in the log, I see the following error come up in the stdout access: access denied (java.io.FilePermission \C:\javaaps\apache-tomcat-6.0.26\a pache-tomcat-6.0.26\lib\ojdbc6.jar read) java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1206) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:313) at java.security.AccessController.checkPermission(AccessController.java: 546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at sun.misc.URLClassPath.check(URLClassPath.java:408) at sun.misc.URLClassPath.checkURL(URLClassPath.java:388) at java.net.URLClassLoader.findResource(URLClassLoader.java:366) at java.lang.ClassLoader.getResource(ClassLoader.java:977) at java.lang.Class.getResource(Class.java:2074) at oracle.sql.ConverterArchive.readObj(ConverterArchive.java:398) at oracle.sql.converter.CharacterConverterJDBC.getInstance(CharacterConv erterJDBC.java:143) at oracle.sql.converter.CharacterConverterFactoryJDBC.make(CharacterConv erterFactoryJDBC.java:45) at oracle.sql.CharacterSetWithConverter.getInstance(CharacterSetWithConv erter.java:95) at oracle.sql.CharacterSetFactoryThin.make(CharacterSetFactoryThin.java: 126) at oracle.sql.CharacterSet.make(CharacterSet.java:448) at oracle.jdbc.driver.DBConversion.init(DBConversion.java:150) at oracle.jdbc.driver.DBConversion.(DBConversion.java:111) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1007) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292) at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java: 508) at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:203) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio n.java:33) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510) at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSou rce.java:275) at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java :206) at edu.utmb.CPC.data.DAOUtil.getConnection(Unknown Source) at edu.utmb.CPC.logging.LogDAO.createLog(Unknown Source) at edu.utmb.CPC.logging.DBLogger.db(Unknown Source) at org.apache.jsp.CPC.Default_jsp._jspService(Default_jsp.java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 13) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269 ) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3 01) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil. java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:283) at org.apache.catalina.core.ApplicationFilterChain.access$000(Applicatio nFilterChain.java:56) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt erChain.java:189) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:185) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:465) at org.apache.catalina.core.StandardHostValve.invo
DO NOT REPLY [Bug 49159] Improve ThreadLocal memory leak clean-up
https://issues.apache.org/bugzilla/show_bug.cgi?id=49159 --- Comment #1 from sylvain.laur...@gmail.com 2010-04-26 16:40:49 EDT --- I did experiment with cleaning the threadlocals from their owning thread by doing it in org.apache.tomcat.util.threads.ThreadPoolExecutor.afterExecute(Runnable, Throwable) It does work (i.e. it improves leak protection for the http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue case ), but since it clear all thread locals after each request, it breaks some optimizations that are done by some frameworks, applications or even tomcat itself. I'm experimenting with the approach of recreating the thread pool, it seems cleaner and more efficient. -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49122] Update of ROOT application index.html
https://issues.apache.org/bugzilla/show_bug.cgi?id=49122 Pid changed: What|Removed |Added Attachment #25295|0 |1 is obsolete|| --- Comment #4 from Pid 2010-04-26 16:46:52 EDT --- Created an attachment (id=25357) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25357) Another modified ROOT app index.html -- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Need advice to notify StandardExecutor when a webapp is stopped
Hello, In order to provide a protection agains this type of memory leak http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue , I experimented with renewing the ThreadPoolExecutor in the org.apache.catalina.core.StandardThreadExecutor. It works when I invoke my renewThreads method through JMX, but now I'd like it to be invoked after a webapp is being stopped. What's the best way to do that ? a LifeCycle listener to be registered somewhere ? Thanks for your ideas. Sylvain
GSOC 2010
Hi All, I am glad to announce that my proposal titled "Enhancing JMX Descriptors in Apache Tomcat" has been accepted for this year's GSOC program. Special thanks goes to every one who helped me through the project proposal preparation phase including Mark, who is the project mentor. I hope I will have a nice time working in this project this summer alongside with Tomcat developers. I would like to thank in advance for any assistance that I receive during the project in terms of clarifications, suggestions and advices, from the community. Regards, Chamith
Re: Need advice to notify StandardExecutor when a webapp is stopped
2010/4/27 Sylvain Laurent : > Hello, > > In order to provide a protection agains this type of memory leak > http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue > , I experimented with renewing the ThreadPoolExecutor in the > org.apache.catalina.core.StandardThreadExecutor. It works when I invoke my > renewThreads method through JMX, but now I'd like it to be invoked after a > webapp is being stopped. > > What's the best way to do that ? a LifeCycle listener to be registered > somewhere ? > I would try to use a LifecycleListener registered on StandardContext. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org