[DEV] Retrieve correctly the amount of memory and deal the case if it is not assigned.

Next step: find a format to record these information in order to pass them to javascript.