You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2022/10/27 09:16:19 UTC

[Bug 66323] JDK_JAVA_OPTIONS grows unboundedly if webapp restarts Tomcat

https://bz.apache.org/bugzilla/show_bug.cgi?id=66323

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for reporting this so others can benefit.

I think we can fix this for Tomcat 10.1.x onwards as the minimum Java version
is 11. That means we don't need to export the environment variable and can just
append those options to the command line.

I don't see a way to avoid this issue for Tomcat 9 and earlier where we are
using this environment variable as a way to add these options for Java 9+ only.

Without knowing the details of the wrapper code, it does seem unusual that the
new Tomcat process inherits the environment variables from the old Tomcat
process. I am guessing there are reasons the wrapper behaves as it does but
I'll note that other service wrappers are available that won't experience this
issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org