-1

How do I monitor the CPU utilization for each VM and the system response time when the cloudlets are running in constant intervals in CloudSim (for example every 5 minutes)? I know that getTotalUtilizationOfCpu() function of VM class is used to get CPU utilization of VMs, but I don't know where to call this function.

Thanks for any help.

sogand
  • 1
  • 1

2 Answers2

0

If your application is Java-based you can consider using JMXMon Sample Collector which allows collecting and plotting arbitrary JMX Attributes so you will be able to get System CPU Load like:

JMeter JMX Java CPU Load

For other technologies it will still be possible using PerfMon Metrics Collector but it will require installation of Server Agent application on your CloudSim host(s).

Check out How to Monitor Your Server Health & Performance During a JMeter Load Test article for more information.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
0

CloudSim doesn't have a built-in feature to compute VM's resource utilization. You can use CloudSim Plus for that, which is a modern version of CloudSim with lots of exclusive features and bug-fixes.

There is an answer to another question that is exactly what you are looking for. Check it here.

Manoel Campos
  • 933
  • 9
  • 12