JSF/ICEFaces 渲染响应时间很长
我有一个 JSF/ICEFaces 应用程序,工作正常,但突然间它开始在渲染响应阶段花费非常长的时间! 我可以从控制台看出 java 部分完成得很好,但显示网页需要 10 分钟!
我使用 JBoss 作为我的应用程序服务器。
您能告诉我如何调试这个问题吗? 我什至不知道从哪里开始。 请告诉我在这里放置一些代码是否有助于了解问题的根源。 首先,您认为这是 JBoss 问题还是应用程序问题?
谢谢,
谭
I have a JSF/ICEFaces application that was working fine but all of the sudden it started taking sinfully long time in rendering response phase! I can tell from the console that the java part completes fine but it takes like 10 minutes to display the web page!
I'm using JBoss as my application server.
Could you please tell me how to go about debugging this problem? I don't even know where to start. Please tell me also if putting some code here will help in knowing the root of the problem. To start with, do you think it's a JBoss problem or application problem?
Thanks,
Tam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
阅读 BalusC:调试 JSF 生命周期
是您的页面特别复杂? 例如,如果您有一个大型数据表,其中每行都包含逻辑,那么渲染阶段可能需要很长时间。
Have a read of BalusC: Debug JSF lifecycle
Is your page particularly complex? For example if you have a large dataTable where each row contains logic then the render phase may take ages.
您可以尝试使用 Firebug 等工具来查看是否有一些 Ajax 功能阻止渲染过程。 据我所知,IceFaces 很大程度上依赖于在应用程序的服务器端执行所有操作,然后将结果发送到浏览器进行显示。
也许您对组件的使用会产生大量与服务器的通信,或者组件无法更新。
我会研究 IceFaces,事实证明,在我使用它的过程中,它一直不稳定且容易出现问题。 他们有自己的论坛,您经常可以在其中找到问题的答案。 我认为是在 Icefaces.org 上。 但如果不了解更多,我无法真正判断问题出在哪里。
You could try to use tools like Firebug to see if there is some Ajax functionality that blocks the render process. IceFaces as I know it relies heavily on doing everything on the serverside of the application and then send the results to the browser for displaying.
Maybe your use of the components generates a lot of communication to the server or the component can not be updated.
I would look into IceFaces it has proven as unstable and problem prone all the times I worked with it. They have a own forum where you often find an answer to your problems. I think it is on Icefaces.org. But without knowing more I can't really tell where the problem is.