Eclipse clearcase plugin is slow when compiling snapshot view due to excessive network access

百般思念 提交于 2019-12-08 04:18:23

问题


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.



来源:https://stackoverflow.com/questions/8918079/eclipse-clearcase-plugin-is-slow-when-compiling-snapshot-view-due-to-excessive-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!