I'm using resin(tomcat) back in nginx(apache) parse JSP file only,like this:
location ~ \.jsp {
// 88 is resin(tomcat) port
proxy_pass http://localhost:88;
}
should I activate keepalive in resin(tomcat)?
No, well you can, but it would be pointless.
NGINX doesn't support keep-alive to backend servers.
(NGINX Wiki)
If you're going to enable keep-alive do it in NGINX to the client, enabling it on the Tomcat side won't do anything if NGINX is sitting in front