Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
jengebr commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448361853 Changes are committed as discussed, ready for re-review. Specifically: 1. Cache is removed, fast-path is added for zero-arg cases 1. Unit tests are added for: - Zero-args method look

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
markt-asf commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448199694 Actually, it does belong to us. It isn't part of the public API. We are free to change it how we wish. If you compare our version to the equivalent code in the EL API JAR from Jakarta EE t

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
ChristopherSchultz commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448176904 > @ChristopherSchultz what prevents changes to `javax.el.Util`? That class doesn't "belong" to us. Depending upon how it changes, we might fail the TCK. It's just better to

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
jengebr commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448111787 This complexity led me to try a fallback plan, which can be faster: if the method has zero parameters, retrieve the Method by name. This works because there is no confusion about parameter

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
markt-asf commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448093530 I think the changes will have to go into `Util`. Something like a map of caches, keyed by class loader with appropriate use of weak references to avoid class loader leaks. -- This is an

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
jengebr commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2448015687 Thanks, I get your points about caching scope and cleanup. @ChristopherSchultz what prevents changes to `javax.el.Util`? -- This is an automated message from the Apache Git Service.

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
ChristopherSchultz commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2447969657 > I'd also like to see the key remove from the cache when the value expires. +1 So I think your technique @jengebr is good, but the cache just needs to be pulled-up i

Re: [PR] Reducing memory usage while evaluating reflective EL expressions [tomcat]

2024-10-30 Thread via GitHub
markt-asf commented on PR #770: URL: https://github.com/apache/tomcat/pull/770#issuecomment-2447798338 Any caching approach needs to consider the case of two classes in different web applications with the same name but different structures. Essentially, caching needs to be per class loader.

[Bug 69377] JSP optimization via custom code generation

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=69377 Mark Thomas changed: What|Removed |Added Severity|normal |enhancement --- Comment #6 from Mark Tho

[Bug 69331] NullPointerException (HttpServlet.java:559)

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=69331 Mark Thomas changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution|---

[Bug 69228] Tomcat occasionally return 404 html page

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=69228 Mark Thomas changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEEDINFO

[Bug 68720] Troubleshooting Tomcat: Addressing Compression Issues with Firefox 'NS_ERROR_NET_PARTIAL_TRANSFER' Error

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68720 Mark Thomas changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEEDINFO

[Bug 69379] HEAD request behavior change does no adhere to RFC 9110

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=69379 Mark Thomas changed: What|Removed |Added Status|REOPENED|NEEDINFO --- Comment #5 from Mark Thomas

Re: Nio2Endpoint creates SSL engines without populating remote IP and port

2024-10-30 Thread Rémy Maucherat
On Wed, Oct 30, 2024 at 5:06 PM Giorgio Saviane wrote: > > Hi all, > when Tomcat is used with BouncyCastle as security provider, the audit > logs of TLS connection attempts do not report the remote IP:port where the > connection comes from: > > [2024-10-25 00:26:51,328 INFO] [server #24 @23e488a

Nio2Endpoint creates SSL engines without populating remote IP and port

2024-10-30 Thread Giorgio Saviane
Hi all, when Tomcat is used with BouncyCastle as security provider, the audit logs of TLS connection attempts do not report the remote IP:port where the connection comes from: [2024-10-25 00:26:51,328 INFO] [server #24 @23e488a9] accepting connection from (Unknown):(Unknown) I investigated why

[Bug 69406] StringInterpreterEnum rethrows IllegalArgumentException for invalid enum

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=69406 --- Comment #2 from John Engebretson --- Created attachment 39917 --> https://bz.apache.org/bugzilla/attachment.cgi?id=39917&action=edit Patch Patch w/ change + JUnit -- You are receiving this mail because: You are the assignee for the bug

Re: Tomcat 9.0.96 - Page title / title tag issue

2024-10-30 Thread Chuck Caldarale
> On Oct 30, 2024, at 01:55, somasani nikhil wrote: > > We are using the following piece of code.. > > = > > Class MyTag extends *TagSupport {* > public int doStartTag() throws JspException { > -- > -- > *constructTitle*(list) > -- > -- > } > > private

JSP EL performance

2024-10-30 Thread Engebretson, John
Hi all! I recently submitted 8 enhancement tickets via Bugzilla, all related to JSP performance, and I thought an explanation would be helpful. In early September, I received an internal report that a small EL change created a 40ms latency regression on the affected calls. The original EL

(tomcat) branch 9.0.x updated: Add debug logging for cache size

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/9.0.x by this push: new 2696a0293a Add debug logging for cache size 2696a02

(tomcat) branch 10.1.x updated: Add debug logging for cache size

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/10.1.x by this push: new 7fd6a5e0a5 Add debug logging for cache size 7fd6a

(tomcat) branch 11.0.x updated: Add debug logging for cache size

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/11.0.x by this push: new dfd7a7b7d8 Add debug logging for cache size dfd7a

(tomcat) branch main updated: Add debug logging for cache size

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new ca9b39f0a1 Add debug logging for cache size ca9b39f0a

(tomcat) branch 10.1.x updated: Fix incorrect cache size calculations for concurrent PUT/DELETE

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/10.1.x by this push: new 1beaeadcc8 Fix incorrect cache size calculations

(tomcat) branch 9.0.x updated: Fix incorrect cache size calculations for concurrent PUT/DELETE

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/9.0.x by this push: new df82cbfd36 Fix incorrect cache size calculations fo

(tomcat) branch 11.0.x updated: Fix incorrect cache size calculations for concurrent PUT/DELETE

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/11.0.x by this push: new 382dabbb19 Fix incorrect cache size calculations

(tomcat) branch main updated: Fix incorrect cache size calculations for concurrent PUT/DELETE

2024-10-30 Thread markt
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new 636017459a Fix incorrect cache size calculations for

(tomcat) branch 9.0.x updated: Use finally for init

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/9.0.x by this push: new ae609e6f84 Use finally for init ae609e6f84 is descri

(tomcat) branch 10.1.x updated: Use finally for init

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/10.1.x by this push: new 01aff530a2 Use finally for init 01aff530a2 is desc

(tomcat) branch 11.0.x updated: Use finally for init

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/11.0.x by this push: new bf8f666230 Use finally for init bf8f666230 is desc

(tomcat) branch main updated: Use finally for init

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new b83e866818 Use finally for init b83e866818 is describe

(tomcat) branch 9.0.x updated: Stop avec init should be a noop

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/9.0.x by this push: new 53ee2867ee Stop avec init should be a noop 53ee2867e

(tomcat) branch 10.1.x updated: Stop avec init should be a noop

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/10.1.x by this push: new 12d8b56603 Stop avec init should be a noop 12d8b56

(tomcat) branch 11.0.x updated: Stop avec init should be a noop

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/11.0.x by this push: new dbd4162c6f Stop avec init should be a noop dbd4162

(tomcat) branch main updated: Stop avec init should be a noop

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new 3d4dce54b2 Stop avec init should be a noop 3d4dce54b2

(tomcat) branch main updated: Revert "Add FAILED_INIT lifecycle state"

2024-10-30 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new b8c2efc6d0 Revert "Add FAILED_INIT lifecycle state" b8

[Bug 68436] Hide "Not loading a JDBC driver as driverClassName property is null" warning

2024-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68436 --- Comment #3 from Mailmur --- Is there a consideration to change this from `.warn` to `.debug` message? This will constantly spam a logging file for no reason. We deliver a war file `META-INF/context.xml` without a driverClassName attribute

Re: Tomcat 9.0.96 - Page title / title tag issue

2024-10-30 Thread somasani nikhil
We are using the following piece of code.. = Class MyTag extends *TagSupport {* public int doStartTag() throws JspException { -- -- *constructTitle*(list) -- -- } private String *constructTitle*(List titleElements) { StringBuffer titleValue = new StringBuf