CaltechOpticalObservatories / NGPS

NGPS Software
3 stars 0 forks source link

observe GUI readout progress and excessive CPU usage #161

Open astronomerdave opened 4 hours ago

astronomerdave commented 4 hours ago

The readout progress bar in the observe GUI is inaccurate and sporadically updated. During CCD readout, the progress bar is updated only 3 or 4 times throughout the ~ 2 1/2 minute readout so it is always lagging the actual progress. On completion, the progress bar might display 50.63 % (and always shown to a resolution of 0.01% which seems excessive). Some minutes after the exposure has long completed, it might increase to 99%.

And, throughout this, the CPU usage for the GUI jumps to about 300-400%.

astronomerdave commented 3 hours ago

Java (ie the GUI) has over 400,000 file descriptors open:

[developer@ngps-devel]$ lsof | awk '{print $1}' | sort | uniq -c | sort -nr | grep java
 404796 java

This is excessive. Most are stale UDP sockets left open.