cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8800) Improve the listVirtualMachines API call to include memory utilization information for a VM
Date Tue, 08 Sep 2015 12:05:46 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734704#comment-14734704
] 

ASF GitHub Bot commented on CLOUDSTACK-8800:
--------------------------------------------

Github user karuturi commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/780#discussion_r38917337
  
    --- Diff: plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
---
    @@ -4751,7 +4760,7 @@ private VirtualMachineGuestOsIdentifier translateGuestOsIdentifier(String
cpuArc
                                 }
                             }
                         }
    -                    vmResponseMap.put(name, new VmStatsEntry(Integer.parseInt(maxCpuUsage),
networkReadKBs, networkWriteKBs, Integer.parseInt(numberCPUs), "vm"));
    +                    vmResponseMap.put(name, new VmStatsEntry(Double.parseDouble(memkb)*1000,Double.parseDouble(guestMemusage)*1000,Double.parseDouble(memlimit)*1000,
Double.parseDouble(maxCpuUsage), networkReadKBs, networkWriteKBs, Integer.parseInt(numberCPUs),
"vm"));
    --- End diff --
    
    Is there a possibility that one of the values is not returned and hence can be null? calling
parseDouble on a null value will throw NPE


> Improve the listVirtualMachines API call to include memory utilization information for
a VM
> -------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8800
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8800
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.5.2
>            Reporter: Maneesha
>            Assignee: Maneesha
>             Fix For: 4.6.0
>
>
> Currently the feature of memory utilization is not available via API call (listVirtualMachines).
> https://cloudstack.apache.org/api/apidocs-4.5/root_admin/listVirtualMachines.html 
> The listVirtualMachine get its values from the "user_vm_view" table in the database.
Currently it shows the CPU utilization of the VM's.
> The only way to find out the memory utilization of VM's running on XenServer, is to run
the "xentop" command on the pool master of the cluster.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message