WebSphere App Server 中的日志文件写入严重延迟
对于在 IBM WebSphere v.7.x 中运行的 Java EE Web 应用程序,我遇到了延迟写入应用程序日志的问题。记录语句最多需要一个小时才会出现在应用程序日志中。
该问题似乎与重负载无关; WAS 几乎立即响应页面请求,我正在对一个不用于性能测试的盒子进行测试,并且在假期也同样如此 - 服务器上的活动非常少。
我的猜测是,与日志记录相关的线程已配置为非常低的优先级,但我无法弄清楚通过管理控制台或配置文件在哪里配置它。
有其他人在使用 WebSphere 时遇到过此类问题吗?
I am experiencing an issue with delayed writes to the application logs for a Java EE web application running in IBM WebSphere v. 7.x. Logging statements taking up to an hour to appear in the application logs.
The problem doesn't appear related to heavy loads; WAS is responding to page requests almost instantly, and I am testing against a box that isn't used for performance testing, and on a holiday no less -- there is very little activitiy on the server.
My guess would be that the thread associated with logging has been configured with very low priority, but I cant figure out where that would be configured via the admin console or the configuration files.
Has anyone else experienced this sort of issue with WebSphere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
线程池中可能没有足够的可用线程。这与页面请求的快速一致,因为它们是由 WebContainer 线程控制的。
尝试增加它:
服务器>应用服务器>线程池> ...
不确定到底要增加哪一个的最大值。在最坏的情况下,全部增加。大幅增加它,所以可以肯定。
其他选项:
确保您有足够的磁盘空间/尝试连接 jConsole 进行查询。
it's possible you don't even enough available threads in the thread pool. Its consistant with the page requests being fast, as they are controlled by the WebContainer threads.
Try increasing it:
Servers > Application Servers > Thread pools > ...
Not sure exactly which one to increase its max value. In worst case, increase'em all. Increase it heavily, so to be sure.
Other options:
make sure you enough disk space / try to connect with jConsole to inquire.