参考文章: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下项目变得很慢很卡内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复