概述
参考文章:https://www.oschina.net/question/1411151_2138359
原因及解决办法:在 WAS 上request.getRemoteHost() 语句的性能很差(执行时间大概2-3秒),处理方式是将shiro-all的jar包中的所有request.getRemoteHost()语句替换为request.getRemoteAddr() 然后重新编译打包。
修改了3个类
org.apache.shiro.web.filter.authc.AuthenticatingFilter
org.apache.shiro.web.session.mgt.ServletContainerSessionManager
org.apache.shiro.web.subject.support.DefaultWebSubjectContext
注意:可以将项目目录下所有的shiro开头的jar包删除,用的jar包替换(shiro1.3.2版本),如下图所示jar;
下载地址及资源名称:
地址:https://download.csdn.net/download/zqq3436/11083294
最后
以上就是风趣缘分为你收集整理的shiro项目在Websphere下项目变得很慢很卡的全部内容,希望文章能够帮你解决shiro项目在Websphere下项目变得很慢很卡所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复