Each request of tomcat will occupy memory cpu, and tomcat has no proxy function. Nginx is written by Russians. Nginx is a static resource server, which can either return requests by itself, or act as a proxy for forwarding and load balancing. Tomcat is dynamic resource java code. Dynamic separation.