What is available free memory in skeleton air application?
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
Hot Cpu Tester can test every device in the pc .
Use it alot myself , assisting others with PC's and at work if there is problematic machines .
Given it thumbs -up in the past and in the present time .
http://7byte.com/index.php?page=hotcpu
Similar Messages
-
How we can calculate available free memory in java?
Hi all
i want to see what is the free heap memory available while running the java application?
please can anyone tell me how i can do it ?
thank uPerhaps the MemoryUsage class is what you're looking for?
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryUsage.html -
System Memory Usage: What Eats My Free Memory?
For some time, I have noticed that my computer gets slower the longer I leave it on and do not restart.
Recently, I began displaying system memory usage from the activitiy monitor to see what's going on.
I noticed that no matter what I do, the Inactve Memory grows and the free memory disappears.
I thought it was due to memory hogs like Photoshop, FCP, etc. But even when I quit those programs, the Inactive Memory remains large and only the Active Memory shrinks.
The Inactive Memory grows even (especially?) when I perform finder operations, like previewing file contents in the finder.
Eventually, I get to the point where the free memory disappears and the machine begins to slow down (or at least seems to).
What's going on and what, if anything can I do to keep this from happening?
I'm running an iMac3.4GHz Intel Core i7 with 8 Gigs of RAM and OS 10.6.8.Thanks. I'm not sure what you mean by "screen saver without energy saver" overnight. My settings are screen saver after about 30 minutes, computer sleep after 1 hour. Do you mean run the computer sleep slider up to "Never?"
Otherwise:
--I don't use any of the programs you mentioned.
--I don't think I've ever seen Spotlight indexing
--Time Machine runs every hour of course, but nothing seems to change when it does.
--My 2 TB hard drive is only about 45% full.
--I usually quit programs, and especially Photoshop, when not in use.
--I do reboot occasionally, usually when I see Free Memory disappear. This is usually every few days.
--I use Time Machine to backup using default settings. My 2 TB drive is about 55% full.
I'll slide the energy saver slider over to "never" per the above and see how things go after a few days.
Thanks for your help -
CPU/memory usage of AIR application under Mac 10.4.10
As my AIR application uses a lot of CPU/memory under Mac
(seems better in Windows), I decide to do some basic testing. I
create several applications with different level of complexities.
Below is a table of CPU/memory usage when the application is simply
sitting there. A brief description of the application can be found
in the end of each line.
Here are some results:
[1] Even for an empty application, CPU usage is not zero
(most non-AIR application has 0 CPU usage when doing nothing). Also
the memory usage is huge, comparable to Finder on my computer.
[2] Empty application has 7 threads running.
[3] Indetermined progress bar costs a lot of CPU; and I guess
any other animation costs a lot of CPU too. But if they are
invisible they are fine.
[4] running timer costs CPU.
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
VSIZE application
10093 adl 1.8% 0:01.85 7 100 292 15.0M 13.8M+ 22.8M 444M
empty
10094 adl 1.9% 0:01.55 7 100 299 15.2M 14.0M+ 23.1M 444M
label
10097 adl 1.9% 0:01.48 7 100 302 15.3M 13.4M 23.7M 445M
progress bar
10095 adl 5.7% 0:02.40 7 100 302 15.4M- 13.2M 23.5M 445M
progress bar (indetermined)
10125 adl 15.9% 0:03.66 7 100 304 15.7M- 13.4M 23.9M 445M 5
progress bar (indetermined)
10126 adl 29.7% 0:10.39 7 100 325 16.7M+ 13.4M+ 24.9M+ 445M
10 progress bar (indetermined)
10128 adl 1.9% 0:01.34 7 100 324 16.1M 13.7M 24.3M 445M 10
progress bar (indetermined), visible=false
10136 adl 1.8% 0:00.76 7 100 323 16.5M+ 13.9M+ 24.7M- 450M
Empty datagrid
10147 adl 1.9% 0:01.60 7 101 328 16.1M 13.8M+ 24.5M- 447M
TabNavigator with two empty VBox children
10138 adl 1.8% 0:01.59 7 100 372 19.4M 13.9M 27.7M 453M
datagrid with 10000 simple rows
10131 adl 3.1% 0:02.38 7 110 348 25.7M 19.3M 34.8M 458M 10
Empty native windows
10143 adl 1.9% 0:00.99 7 100 296 15.1M 13.9M+ 23.2M- 444M
Timer, delay = 100ms, calling an empty function
10145 adl 4.1% 0:02.35 7 100 298 15.0M 14.0M+ 23.2M- 444M
Timer, delay = 100ms, calling function update label position
As to my own application, it's much bigger than these simple
ones. The CPU usually stablizes to 20% and VSIZE is about 1G. There
is no timer running. When I leave the application open for a few
hours, the application will eventually freeze and I have to kill
it.
I am wondering if there are any articles or documents
explaining AIR's CPU/memory usage. And also if AIR is planning to
improve the performance in the next release.James, thank you for the very fast answer! I did various tests on the weekend on my computer and computer of my friend.
And I can say, that Debug flag doesn't affect memory consumption. They still eat memory. My steps to reproduce are as follows:
(Windows 7 32 bit)
Photoshop CS5:
1) set HKEY_CURRENT_USER\Software\Adobe\CSXS2Preferences\PlayerDebugMode to 0
2*) check HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXS2Preferences (just in case)
3) Compile HelloPhotoshop example to ZXP and install via Extension manager
4) restart computer
5) Run Photoshop CS5 - Memory consumption: 100 096 KB
6) Open HelloPhotoshop and close it 10 times
7) Memory consumption: 155 840 - 5,574 MB per one close/open
Maybe a garbage collector is expected to run and free this memory, but it never happened in my case. The memory pool was increasing to 1 GB when I was working with one of my panels - with no documents open in Photoshop
In InDesign I tried the same thing with HelloInDesign ( I had to close the panel completely and then open with Window | Extensions | HelloInDesign)
Memory consumption on start: 118 516
Memory consumption after 10 open/close cycles: 197 516
It's 7,9 MB per one close/open
It's the simpliest panel test. When I'm using AIR libraries the memory usage is increasing a lot faster. -
Memory Leakage in AIR application
Hi all,
I have a performance issue with air application. After launching the application if we keep the application idle means also the memory is creeping up.Why is it so? . How to solve this.
Thanks & Regards,
Jayagopal.one main cause for memory lekage problem is unclosed database connection.
so please check any unclosed database connection if any.... -
Available free memory is 10MB in Appl1 Prod server
Dear all,
kindly check the Top Cpu process details
94.324 root dtgreet 0,09 20:31 1.652 20
237.646 root /opt/ibm/director/j 0,08 3:20 38.704 20
151.756 esaadmin /usr/java5/bin/java 0,01 6:08 74.340 20
294.928 irpadm /usr/sap/IRP/D00/ex 0,01 2:57 17.388 20
270.446 irpadm /usr/sap/IRP/SYS/ex 0,01 2:22 4.300 20
315.572 root /usr/bin/xmwlm -L 0,00 0:15 848 20
397.356 irpadm dw.sapIRP_D00 pf=/u 0,00 149:55 210.184 20
69.666 root gil 0,00 1:30 960 41
213.150 irpadm /usr/sap/IRP/D00/ex 0,00 1:19 30.076 20
254.092 irpadm /usr/sap/IRP/D00/ex 0,00 1:19 30.080 20
172.056 irpadm dw.sapIRP_D00 pf=/u 0,00 3:30 35.920 20
278.716 root nfsd 0,00 1:49 2.496 20
114.820 root /usr/lpp/X11/bin/X 0,00 0:29 6.316 20
49.176 root xmgc 0,00 0:28 448 41
245.892 root rpc.lockd 0,00 0:19 1.216 20
127.060 irpadm icman -attach pf=/u 0,00 0:09 92.188 20
385.076 irpadm gwrd -dp pf=/usr/sa 0,00 0:15 8.476 20
65.568 root netm 0,00 0:02 448 41
319.546 irpadm /usr/sap/IRP/D00/ex 0,00 0:11 12.136 20
188.518 root rtcmd 0,00 0:05 512 20
98.428 root /usr/sbin/syncd 60 0,00 3:46 504 20
45.078 root pilegc 0,00 0:01 1.472 41
200.804 root n4bg 0,00 0:00 448 20
208.998 root rdpgc 0,00 0:00 448 20
192.610 root /usr/ccs/bin/shlap6 0,00 0:00 436 20
184.478 root /usr/sbin/syslogd 0,00 0:00 364 20
180.322 root kbiod 0,00 0:11 1.280 20
168.036 root /usr/sbin/cron 0,00 0:01 412 20
163.984 root /usr/sbin/inetd 0,00 0:00 480 20
159.872 root /opt/ibm/director/b 0,00 0:00 208 20
155.884 root /usr/sbin/rpc.mount 0,00 0:00 1.800 20
147.580 root rgsr 0,00 0:01 448 20
143.440 root usbCfgDev 0,00 0:00 448 20
139.302 irpadm dw.sapIRP_D00 pf=/u 0,00 1:36 103.772 20
135.238 root hea_kproc 0,00 0:00 448 41
123.088 root dtlogin <:0> 0,00 0:00 424 20
118.860 root j2pg 0,00 0:10 2.048 41
110.674 root dog 0,00 0:00 960 20
102.498 root /usr/dt/bin/dtlogin 0,00 0:00 456 20
90.254 root /usr/lib/errdemon 0,00 0:00 628 20
my query is , is it possible to the above same from OS level (AIX)
(In windows we can check task manager )
kindly suggest how to kill the process from OS level.
regardsYou can check these details from OS level(*ix) with below command
ps -ef |grep
You also can check this from SAP gui level from ST06
Below command can help you for killing the processes from OS(*ix) level
kill -9 PID
Here PID is the process ID...
Suggetion: Close your duplicate threads and just follow only one, as i saw similar post raised by you
Regards,
Nick Loy -
Determine System free memory (Not memory allocated to JVM)
Hi,
I have a Swing application in which I am trying to display the available free memory and total memory for the client machine on which it is running.
Runtime.getRuntime().freeMemory() and Runtime.getRuntime().totalMemory() gives me relative to the JVM occupied memory, and not the System's physical memory.
Is there any way I can capture that?
Thanks,
MIs there any way I can capture that?Not really.
For one thing on most operating systems it isn't possible to distinguish between physical and virtual memory, and since virtual memory can grow or shrink, and pages can be swapped (hopefully) seamlessly between the two it isn't really a useful question. On most OSes I believe you can get information about the total memory being used (physical + virtual) at a given moment but to get that in java is probably difficult or impossible, and certainly something you'd have to write non-java code for. -
I went into the Free memory app and it says only frees up to 20mb or something like that. I hit the free memory button and it jumped to 50 then 47, any thoughts?
What is the free memory app?
-
Application Storage - Free memory is zero
Need URGENT help for my mobile issue ( Model 9220 Curve ) - Application Storage - Free memory is zero
( Tried reaching Blackberry Support in India - NO RESPONSE )
1. Getting Supplimentary Service failure : General Error - Comes on re-booting this device
2. No free memory despite removing many application > 100 MB - despite status is same
3. Application Storage , there is in "Others " - which is using 240 MB , besides " System " & " Applications "
4. Un-intalled ARM ( not deleled ) but could install again , in order to debug and isolate issue , as there is not enough free space.
5 . Tried " Hard & Soft " Resets
Suggest !Make a full backup then do a security wipe on the device.
http://www.blackberry.com/btsc/KB14058
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
Turn on Distraction free mode on mac in Adobe AIR application
Is there a possibility to turn on Distraction free mode in Adobe AIR application on OSX?
Could you please open a new bug report on this over at bugbase.adobe.com? When adding the bug, please include sample code or an application so we can quickly test this out internally. If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]).
Once added, please post back with the URL and I'll attach the symbolicated crash log to the bug report. Out of curiosity, have you tried this with AIR 3.6? -
Packaging an AIR application in a native installer
Hi! I'm trying to create a native installer of my AIR Application, because (I think) it's the only way make the native processes working. But I have a problem: I used the following command to pack: "adt -package -storetype pkcs12 -keystore myCert.pfx -target native -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp-app.xml", but I get the error: "File myApp-app.xml is not a valid AIRI or AIR file". In the Flash Builder I use as additional compiler arguments: "-locale=pt_PT,en_UK,fr_FR,de_DE,ro_RO,es_ES -allow-source-path-overlap=true -source-path=assets" and I add the source path "src/locale/{locale}/". What is the sintax for packing my AIR application in a native installer? Thanks in advance.
Hi again! Thanks for the reply. I based myself on the link to see what command syntax I should use to pack my Air Windowed Application and it was the command that I presented in the previous post.
adt version "2.0.1.12090"
My Descriptor File
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.0">
<!-- Adobe AIR Application Descriptor File Template.
Specifies parameters for identifying, installing, and launching AIR applications.
xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0
The last segment of the namespace specifies the version
of the AIR runtime required for this application to run.
minimumPatchLevel - The minimum patch level of the AIR runtime required to run
the application. Optional.
-->
<!-- A universally unique application identifier. Must be unique across all AIR applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.MyCompany.Application</id>
<!-- Used as the filename for the application. Required. -->
<filename>Production Control System</filename>
<!-- The name that is displayed in the AIR application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Production Control System</name>
<!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
<version>2.1.3</version>
<!-- Description, displayed in the AIR application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<!-- <description></description> -->
<!-- Copyright information. Optional -->
<!-- <copyright></copyright> -->
<!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
<!-- <publisherID>My Company</publisherID> -->
<!-- Settings for the application's initial window. Required. -->
<initialWindow>
<!-- The main SWF or HTML file of the application. Required. -->
<!-- Note: In Flash Builder, the SWF reference is set automatically. -->
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
<!-- The title of the main window. Optional. -->
<!-- <title></title> -->
<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<systemChrome>none</systemChrome>
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<transparent>true</transparent>
<!-- Whether the window is initially visible. Optional. Default false. -->
<!-- <visible></visible> -->
<!-- Whether the user can minimize the window. Optional. Default true. -->
<!-- <minimizable></minimizable> -->
<!-- Whether the user can maximize the window. Optional. Default true. -->
<!-- <maximizable></maximizable> -->
<!-- Whether the user can resize the window. Optional. Default true. -->
<!-- <resizable></resizable> -->
<!-- The window's initial width in pixels. Optional. -->
<!-- <width></width> -->
<!-- The window's initial height in pixels. Optional. -->
<!-- <height></height> -->
<!-- The window's initial x position. Optional. -->
<!-- <x></x> -->
<!-- The window's initial y position. Optional. -->
<!-- <y></y> -->
<!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
<!-- <minSize></minSize> -->
<!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
<!-- <maxSize></maxSize> -->
</initialWindow>
<!-- We recommend omitting the supportedProfiles element, -->
<!-- which in turn permits your application to be deployed to all -->
<!-- devices supported by AIR. If you wish to restrict deployment -->
<!-- (i.e., to only mobile devices) then add this element and list -->
<!-- only the profiles which your application does support. -->
<!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
<supportedProfiles>extendedDesktop</supportedProfiles>
<!-- The subpath of the standard default installation location to use. Optional. -->
<!-- <installFolder></installFolder> -->
<!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
<!-- <programMenuFolder></programMenuFolder> -->
<!-- The icon the system uses for the application. For at least one resolution,
specify the path to a PNG file included in the AIR package. Optional. -->
<!-- <icon>
<image16x16></image16x16>
<image32x32></image32x32>
<image48x48></image48x48>
<image128x128></image128x128>
</icon> -->
<!-- Whether the application handles the update when a user double-clicks an update version
of the AIR file (true), or the default AIR application installer handles the update (false).
Optional. Default false. -->
<customUpdateUI>true</customUpdateUI>
<!-- Whether the application can be launched when the user clicks a link in a web browser.
Optional. Default false. -->
<!-- <allowBrowserInvocation></allowBrowserInvocation> -->
<!-- Listing of file types for which the application can register. Optional. -->
<!-- <fileTypes> -->
<!-- Defines one file type. Optional. -->
<!-- <fileType> -->
<!-- The name that the system displays for the registered file type. Required. -->
<!-- <name></name> -->
<!-- The extension to register. Required. -->
<!-- <extension></extension> -->
<!-- The description of the file type. Optional. -->
<!-- <description></description> -->
<!-- The MIME content type. -->
<!-- <contentType></contentType> -->
<!-- The icon to display for the file type. Optional. -->
<!-- <icon>
<image16x16></image16x16>
<image32x32></image32x32>
<image48x48></image48x48>
<image128x128></image128x128>
</icon> -->
<!-- </fileType> -->
<!-- </fileTypes> -->
<!-- iPhone/iPad -specific capabilities -->
<!-- <iPhone> -->
<!-- A list of plist key/value pairs to be added to the application Info.plist -->
<!-- <InfoAdditions>
<![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>YES</string>
]]>
</InfoAdditions> -->
<!-- </iPhone> -->
</application> -
What's the difference between free memory and inactive memory?
In activity monitor it mostly shows my having a lot of inactive memory and a lot less free memory even when I'm only running Safari for instance. What is this inactive memory and why is not available?
This is a very informative article:
http://docs.info.apple.com/article.html?artnum=107918 -
How to read the amount of free memory available?
I need a tool to tell me the amount of free memory left, at any given time. I want to tell my user in advance, and as the experiment proceeds, how much experiment time can remain before we will run out of memory. Yes I know, in a more perfect world the data would be written to disk and not stay in memory; but for now this solution would really help.
Please be clear: I'm not looking for the performance profiling tool. I need something that will tell my program, at runtime, how much memory is left available to it. Is there any such tool?
Thanks,
KenHey Ken,
I think this article discusses what you're looking for:
How Can I Programmatically Find Information About My Computer's Memory Usage?
http://digital.ni.com/public.nsf/allkb/B5889EB5349FAC478625723E00090265
Hope this helps!
--Ryan S. -
Hello All,
I am getting the following warning message:
<WebLogicServer> <000334> <"27%" of starting server free memory available.>
Can anyone suggest me how to handle this problem.
Thanks
SandhyaThanks, Karthik
"Karthik V" <[email protected]> wrote:
What version of WLS are you using?
WebLogic logs the low memory warning messages which is configurable using
admin console.
Follow this link for more information on tuning the JVM:
http://e-docs.bea.com/wls/docs70/perform/JVMTuning.html
/k
"sandhya" <[email protected]> wrote in message
news:3f1acf7e$[email protected]..
Hello All,
I am getting the following warning message:
<WebLogicServer> <000334> <"27%" of starting server free memoryavailable.>
Can anyone suggest me how to handle this problem.
Thanks
Sandhya -
hi, my macbook air has no longer free memory space. I haven`t done anything since it started to comunicate me that. now when i turn it on all i can see is de apple on the top left corner and the rest of the monitor is blue. how can i get some memory space since i can`t even onpen the finder?/
Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
(117195)
Maybe you are looking for
-
Unable to find data source in bw server
Hai Experts, Iam novice to bw,got a problem in co-pa extraction, created data source in R/3 n generated,in bw to assign data source to infosource n create info package.But i dont find the infosource or replicated data in bw,could any one suggest how
-
SSRS 2008 - Vista Security - Header Only
I installed SQL 2008 Developer and Reporting Services on my Vista Ultimate x64 box. The box is a new rebuild and only has drivers and windows updates on it. During the setup of SQL I told it to use my login as the account to run all the SQL service
-
Hi everyone, I added a Spry Menu Bar (menubar1) to my site layout using Dreamweaver CS3. When I clicked 'Live mode' everything looked fine but when I previewed it in a browser and since then I have recently uploaded it to test it out I get white bloc
-
Redirect to different pages based on user input value
Hello, Anyone please help. I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit b
-
Netflix would change aspect ratio 30 seconds into the video.
I'm having an issue with Netflix video streaming changing the aspect ratio from wide format to standard within 30 seconds into the video. Doesn't happen on the sony PS3, macbook air, ipad2. Any suggestions? Thanks in advance. Before: 30 Seconds int