I grabbed apache-tomcat-9.0.52.tar.gz from https://downloads.apache.org/tomcat/tomcat-9/v9.0.52/bin/apache-tomcat-9.0.52.tar.gz I unpacked it to /opt/apache-tomcat-9.0.52.tar.gz. I uninstalled tomcat9 (purged, and rm -rf /var/lib/tomcat/webapps) I tweaked CATALINA_HOME and JRE_HOME appropriately.
I ran $CATALINA_HOME/bin/start.sh. As root, which clearly was a mistake. I thought it would su, but clearly I should start it as mortal user. Perhaps there is a better script, but clearly the tomcat package took care of that. (I wouldn't want to run it as root in production at all) Before fixing that mistake, I notice: PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 6246 root 20 0 3417M 37392 17752 S 201. 0.9 22:34.04 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-9.0.52/conf/logging.properties -Djava.util.logging.manag 6252 root 20 0 3417M 37392 17752 R 100. 0.9 11:10.02 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-9.0.52/conf/logging.properties -Djava.util.logging.manag 6247 root 20 0 3417M 37392 17752 R 100. 0.9 11:15.75 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-9.0.52/conf/logging.properties -Djava.util.logging.manag oscar-serv03-[~] root 55 #ls -l /opt/apache-tomcat-9.0.52/logs total 0 -rw-r----- 1 root root 0 Aug 16 20:34 catalina.2021-08-16.log -rw-r----- 1 root root 0 Aug 16 20:34 catalina.out -rw-r----- 1 root root 0 Aug 16 20:34 host-manager.2021-08-16.log -rw-r----- 1 root root 0 Aug 16 20:34 localhost.2021-08-16.log -rw-r----- 1 root root 0 Aug 16 20:34 manager.2021-08-16.log I've done nothing. No deploy. Of course, the manager is included, so perhaps it is compiling or deploying that? Port 8080 not open: oscar-serv03-[~] root 56 #netstat -tan Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 192.168.2.13:22 192.168.2.3:56962 ESTABLISHED tcp 0 0 192.168.2.13:22 192.168.2.3:56968 ESTABLISHED tcp6 0 0 :::22 :::* LISTEN oscar-serv03-[~] mcr 10002 %free total used free shared buff/cache available Mem: 4030104 169540 2835356 792 1025208 3603084 Swap: 1048572 0 1048572 So, 169M of ~4G used. No swapping. Lots of ram free. -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | IoT architect [ ] m...@sandelman.ca http://www.sandelman.ca/ | ruby on rails [
signature.asc
Description: PGP signature