Eclipse clearcase plugin is slow when compiling sn

2019-06-05 01:48发布

问题:

I'm using Rational Clearcase SCM adapter in RSA/RAD 8, and is using snapshot view.

I have just found out that a full rebuild of our code takes 15 seconds when the clearcase plugin is "disconnected.", but when connected it takes more than 90 seconds - on a good day...

Since the CPU, disk, and also the network is more or less idle while compiling, I used wireshark to trace what's going on.

The delay seems to be caused by excessive network traffic, a few packages going forth and back to the clear case server for each file touched in the snapshot view. Note; it's not a dynamic view.

Is there a way to stop clearcase or the plugin from accessing the server? It can't be important, it works perfectly fine in "disconnected" mode.

回答1:

What usually slows down everything is, for the ClearCase Eclipse plugin, is the activation of some options which involve a constant lookup of the view:

(from this developerWorks article)

For instance, "perform refresh status recursively" is suspect.
Also, "When checked in files are edited by an internal, non-interactive editor => Automatically check out" doesn't help if, for some reason, you have resources checked in which must be modified by each compilation.

So try to deactivate as many options as you can in order to isolate the one which might cause the issue.



回答2:

I deactivated the Clear Case SCM adapter, and installed the Clear Case Remote Client instead.

The time to do a "rebuild all" time was reduced from 100s to 20s.