How could i get the space of the internal memory

when i delete the models by calling rootNode.detachAllChildren()

how could i get the space of the internal memory which taken before

Its normal java behavior, meaning if theres no reference to the object it will be garbage collected.