ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
111 stars 96 forks source link

Opening OPI that have scripts is slow #2644

Closed domensoklic closed 4 years ago

domensoklic commented 4 years ago

We have an issue with freezing OPI windows with CSS version 4.6. The problem is somehow connected with using scripts. Whenever we add scripts to a few controls in OPI window and then try to open the window with OPI Display, CSS freezes for a significant amount of time. We were using empty scripts to be sure that script content is not the cause for the delay. If we use CSS version 4.5.9, OPI window opens without significant delay.

CSS 4.6 was tested with Java 11, CSS 4.5.9 with Java 8.

domensoklic commented 4 years ago

It seems it's a duplicate of #1197 We added -Dpython.import.site=false to the VM arguments and now it works fast again.