IDEX-1264 Fixed calculating used memory
CLDIDE-1988 Added websocket notifying about updating value of used memory