Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 031BA10786 for ; Fri, 7 Feb 2014 06:17:37 +0000 (UTC) Received: (qmail 21540 invoked by uid 500); 7 Feb 2014 06:17:36 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 20974 invoked by uid 500); 7 Feb 2014 06:17:24 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 20927 invoked by uid 500); 7 Feb 2014 06:17:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 20917 invoked by uid 99); 7 Feb 2014 06:17:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 06:17:21 +0000 Date: Fri, 7 Feb 2014 06:17:20 +0000 (UTC) From: "Koushik Das (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-5993) Cloud agent fails to start on 32-bit system vms (cpvm and ssvm) created with 4GB RAM offering MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-5993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koushik Das updated CLOUDSTACK-5993: ------------------------------------ Fix Version/s: (was: 4.4.0) 4.3.0 > Cloud agent fails to start on 32-bit system vms (cpvm and ssvm) created with 4GB RAM offering > --------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-5993 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5993 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.3.0 > Reporter: Koushik Das > Assignee: shweta agarwal > Priority: Critical > Fix For: 4.3.0 > > > Repro steps: > - Create cpvm with 4GB RAM offering > - Once the VM is up and running, verify that cloud agent is not started > - Check the logs at /var/log/cloud/cloud.out and see the following lines > Error occurred during initialization of VM > Could not reserve enough space for object heap > Could not create the Java virtual machine. > There is a script _run.sh that gets deployed as part of systemvm.iso. This computes the max. heap size for the agent JVM based on the below logic. > tot_mem_k=$(cat /proc/meminfo | grep MemTotal | awk '{print $2}') > let "tot_mem_m=tot_mem_k>>10" > let "eightypcnt=$tot_mem_m*8/10" > let "maxmem=$tot_mem_m-80" > if [ $maxmem -gt $eightypcnt ] > then > maxmem=$eightypcnt > fi > I did some testing and found that for 32 bit system vms if the max. heap size specified is more than ~2600MB then the JVM fails to launch with the error message provided in repro steps. Now for 4GB RAM, the computed heap size is ~3.2G (0.8*4G). As a result agent JVM fails to start. > For 64 bit system vms things work fine based on the above logic. I have verified by creating system vms with 8GB and 12GB RAM and didn't notice any issues. > Planning to fix the problem by adding the following logic > if [ "$(uname -m | grep '64')" == "" ]; then > let "maxmem32bit=2600" > if [ $maxmem -gt $maxmem32bit ]; then > maxmem=$maxmem32bit > fi > fi -- This message was sent by Atlassian JIRA (v6.1.5#6160)