kioie commented on issue #3456: Memory Used is incorrect
URL: https://github.com/apache/cloudstack/issues/3456#issuecomment-507632698
 
 
   I'm thinking the issue could be because of the below
   
    ```
   public VmStatsEntry getVmStat(final Connect conn, final String vmName) 
throws LibvirtException {
           Domain dm = null;
           try {
               dm = getDomain(conn, vmName);
               if (dm == null) {
                   return null;
               `}`
               DomainInfo info = dm.getInfo();
               final VmStatsEntry stats = new VmStatsEntry();
   
               stats.setNumCPUs(info.nrVirtCpu);
               stats.setEntityType("vm");
   
               stats.setMemoryKBs(info.maxMem);
               stats.setTargetMemoryKBs(info.memory);
               stats.setIntFreeMemoryKBs(getMemoryFreeInKBs(dm));
   ```
   
   stats.setMemoryKBs(info.maxMem);
   stats.setTargetMemoryKBs(info.memory);
   
   I believe `maxMem` and `memory` would most likely return similar values

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to