How to determine Memory Utilization?

Hi,

I’m trying to retrieve statistical data from BIG-IP device using iControl API through Java application.

Whats the difference between the two methods mentioned below?

1. iControl::System::Statistics::get_all_host_statistics()

2. iControl::System::Statistics::get_global_statistics()

Statistics informations are available for the both methods. Some of the statistics type (like STATISTIC_MEMORY_USED_BYTES) are retrieved from both the methods. If I need to retrieve STATISTIC_MEMORY_USED_BYTES statistic value, corresponding to a BIG-IP device, which method should be used?

Thanks,

Vinoth.