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 :

enter image description here

enter image description here

Interestingly the problem disappears when I

  1. either disable JRebel,
  2. or remove a 3rd party URL rewrite library (com.ocpsoft.pretty.faces.*).

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 ?

Edit:

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

But why this happens only when Jrebel is on ??

有帮助吗?

解决方案

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/

其他提示

I also ran into this. This is definitely an issue with JRebel 5.5.0.

I worked around this problem by using JRebel 5.4.2 instead.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top