启用JRebel时CPU使用率高 [英] High CPU usage when JRebel is on

查看:571
本文介绍了启用JRebel时CPU使用率高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为我的JSF项目打开JRebel时,每个请求的CPU使用率都会过高,请求已送达时下拉列表.我确实查看了探查器,但这不是由于我的项目类本身引起的.但是我什至可以找出导致分析结果的原因.以下是分析结果:

When turning on JRebel for my JSF project, CPU usage gets too high on each requests & drops down when request has been served. I did looked though the profiler but it was not caused due to my project classes itself. But I could even figure out the culprit looking at the profiling results. Here are the profiling results :

有趣的是,当我

  1. 要么禁用JRebel,要么
  2. 或删除第三方URL重写库(com.ocpsoft.pretty.faces.*).

但是随后,我创建了一个新的netbeans新项目,而没有禁用以上两个项目之一,&但是问题仍然不存在,应该已经解决了.

But then I created a new fresh netbeans project without disabling either of the above two, & but still the problem is not there, which expectedly should have been.

任何想法可能是什么原因造成的?

Any idea what may be causing this ?

似乎Prettyfaces(com.ocpsoft.pretty.faces)URL重写库仍然是罪魁祸首. 查看此快照:

Seems Prettyfaces (com.ocpsoft.pretty.faces) URL rewrite library is the culprit anyway.. See this snapshot:

但是为什么只有在Jrebel开启时才会发生这种情况?

But why this happens only when Jrebel is on ??

推荐答案

问题出在JRebel 5.5.0 prettyfaces插件中,您可以禁用它,或使用JRebel每晚构建(或JRebel 5.5.1+一旦可用),其中包含固定版本.

The problem is in JRebel 5.5.0 prettyfaces plugin, you can either disable it, or use JRebel nightly build (or JRebel 5.5.1+ once available), which contains the fixed version.

http://zeroturnaround.com/software/jrebel/download/early-access /

这篇关于启用JRebel时CPU使用率高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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