开发者

jrebel - all classes reloading

Recently jrebel has started reloading all of the classes in our project when we make a jersey request as well as when we shut down. It doesn't seem to be every request but if you wait a while between requests it is almost guaranteed to happen.

It just loops over every class in the project and reloads it - I had to bump the permgen because it was blowing past that.

Any ideas on what to check th开发者_如何学JAVAat may have changed that would cause this to happen all of the sudden?


It turns out the problem was a maven issue in the way we were installing a jar that was not part of a repo. It was getting a strange dependency that was causing a circular reference which meant that when any class changed it refreshed all of them thus causing jrebel to reload everything.


Did you recompile the whole application classes before the request? JRebel will only pick up and updated those classes which timestamp was changed.

Updating the classes will not start on its own - something should trigger the process, so waiting between the requests doesn't make much sense. Unless you have some daemon process sending the requests to the service.

Enable JRebel logging with -Drebel.log=true and send the jrebel.log file to support - it can be traced then.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜