Re: Heap allocations when switching from Tomcat 7 to Tomcat 8
On 09/06/2021 19:12, James H. H. Lampert wrote: We are beginning to migrate some of our customers from Tomcat 7 to Tomcat 8.5. Some of them have performance issues even with heap allocations of -Xms4096m -Xmx5120m Would it be necessary to go even bigger with Tomcat 8.5? Generally I'd say the heap requirements shouldn't change noticeably between Tomcat versions but, particularly with the changes to resource loading in 8.5, there will be some changes and it is possible that they are large for some edge cases. As always with performance issues, my recommendation is to use a profiler and get some data on what is going on. That makes figuring and the why and then the right solution a lot easier. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Heap allocations when switching from Tomcat 7 to Tomcat 8
James, > -Original Message- > From: James H. H. Lampert > Sent: Wednesday, June 09, 2021 1:13 PM > To: Tomcat Users List > Subject: Heap allocations when switching from Tomcat 7 to Tomcat 8 > > We are beginning to migrate some of our customers from Tomcat 7 to > Tomcat 8.5. > > Some of them have performance issues even with heap allocations of - > Xms4096m -Xmx5120m > > Would it be necessary to go even bigger with Tomcat 8.5? > > -- > JHHL > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org Somewhere after 7.x there was a change to the Tomcat class loader to not cache some resources that previously were cached. My notes say "classes" are no longer cached (but maybe other things loaded via getResourceAsStream() are still cached. I don't remember.) Ordinarily this would result in less heap usage (due to a smaller cache) but... Did you also change from Java 8 to something else, like 11? One big difference there is that the internal JAXB classes are gone. If you use JAXB, you need to include the corresponding external jars. With external JAXB jars, Tomcat 9 generates a lot more garbage than 7. John
Heap allocations when switching from Tomcat 7 to Tomcat 8
We are beginning to migrate some of our customers from Tomcat 7 to Tomcat 8.5. Some of them have performance issues even with heap allocations of -Xms4096m -Xmx5120m Would it be necessary to go even bigger with Tomcat 8.5? -- JHHL - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org