tomcat 部署的项目外网访问很慢
在服务器上用tomcat 部署的jsp项目, 在服务器本机上访问速度很快, 可是用域名访问的时候就慢得不行了, 要几十秒才能打开。
tomcat 绑定域名配置如下:
<Engine name="Catalina" defaultHost="www.xxx.com">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="www.xxx.com" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
tomcat项目外网访问慢
[解决办法]
有长城防火墙 怎么快的起来
[解决办法]