Skip to main content
July 26, 2013
Question

What is available free memory in skeleton air application?

  • July 26, 2013
  • 0 replies
  • 371 views

hi,

My pc has 12 gb.

I was developing full scale DESKTOP adobe air app and it started to crash on mousemove. So basically i wanted to see whats available free memory  it was showing 50mb

that was too low for my app to process data.

So i went back and created simple HTML that shows available free memory...it shows 80mb free....whats going on?.

Anyone care to explain? FREE memory should be atleast 50% of allocated memory of processs assuming system uses 50%

Here is code and here is HTML

output

Memory-f-88-t-6452-p-30064

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>PUSH PERFECT</title>   

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<script src="assets/js/frameworks/libs/air/AIRAliases.js"></script>

</head>

<body  style="overflow:hidden;padding:5px;" id="MySplitter" >                   

                    <div class="span5 grider"  style="text-align:left;">

                            <ul class="breadcrumb">

                            <li><a href="#">Calculation</a> <span class="divider"> </span></li>

                            <li><span >Memory</span>-f-<span id='freememory'></span>-t-<span id='totalmemory'></span>-p-<span id='privatememory'></span></li>

                            </ul>

                    </div>

           

<script>

function displaymemory()

{

var totalmemory=air.System.    totalMemoryNumber;

var freememory=air.System.freeMemory;

var privatememory=air.System.privateMemory;

document.getElementById("totalmemory").innerHTML=totalmemory/1024;

document.getElementById("freememory").innerHTML=freememory/1024;

document.getElementById("privatememory").innerHTML=privatememory/1024;

}

displaymemory();

air.System.gc();

displaymemory();

</script>

</body>

</html>

===================

Thanks in advance


This topic has been closed for replies.