为什么当我访问它时,在centos上的tomcat太慢 [英] why my tomcat which on centos is too slow when I access it

查看:79
本文介绍了为什么当我访问它时,在centos上的tomcat太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vmware机器上的centos上安装了tomcat.当我在Windows firefox上访问tomcat时,它太慢了.我编辑iptables并添加"8080"端口以在其中进行访问,如下所示:"-A输入-p tcp -m状态-状态NEW -m tcp --dport 8080 -j接受"然后,我重新启动tomcat.在我的Windows7 firefox浏览器上,它非常慢.虽然我关闭iptables也可以.但是,这并不安全.那么谁能告诉我为什么以及应该怎么做才能提高访问tomcat的速度呢?

I install tomcat on centos in my vmware machine. When I access tomcat at my windows firefox,it's too slow. I edit the iptables and add "8080" port to access in it, like this: "-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT" Then i restart the tomcat. It very slow at my windows7 firefox explore.While if i close the iptables ,it will be fine.But it's not safe. So who can tell me why and what I should do to increase the speed to access tomcat?

推荐答案

为了他人的利益-我有一个类似的问题,就是在CentOS中访问时,tomcat看起来很慢(显然没有理由)(我不是在说)关于在CentOS外部访问它的情况).事实证明,tomcat并不慢,但是firefox中不正确的代理设置使它看起来很慢.我将代理设置更改为手动,并配置了本地主机不需要代理,然后重新启动了浏览器.我的问题立刻消失了.

For the benefit of others - I had a similar problem that tomcat appeared to be slow(for apparently no reason) when accessed inside the CentOS(I am not talking about the case when it is accessed outside the CentOS). It turned out that tomcat wasn't slow, but the incorrect proxy settings in firefox was making it appear slow. i changed the proxy settings to manual, and configured no proxy required for localhost and restarted the browser. My problem went away instantly.

这篇关于为什么当我访问它时,在centos上的tomcat太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆