Like other Java enterprise tools, Tomcat has migrated from the original Java EE specification to Jakarta EE. Tomcat 9 and earlier were based on Java EE; Tomcat 10 and later are based on Jakarta EE.
do you have your HD set to spin down? that could be a big problem. you can also do some performance tuning on Tomcat or on mysql... just google "Tomcat performance tuning," for example, and you should ...