Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3371] Windows Heap Size

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-03-16T17:08:32.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy, Studio, Titanium SDK & CLI
Labels8.1, Windows, heap, memory, phone
ReporterParmeet Singh
AssigneeShak Hossain
Created2016-03-15T06:26:14.000+0000
Updated2016-03-17T06:28:12.000+0000

Description

I want to define heap size of memory in my app but there is no documentation available to refer. What is the method to set the heap size for Windows Phone 8.1 app.

Comments

  1. Sharif AbuDarda 2016-03-16

    Hello, *Setting your memory configuration* By default, Studio allocates a certain amount of memory to start (the -Xms parameter) and uses a maximum amount (the -Xmx parameter) of Java heap memory, which is usually enough for most development tasks. However, depending on the JRE that you are running and if you are working with additional plugins and have many files open, you may need to increase your amount of memory. You may also find it helpful to increase the size of the permanent generation memory (the --launcher.XXMaxPermSize parameter). In some situations, such as when you have many projects in your workspace or when a project under source control has many files, you may get better performance by increasing the maximum heap memory (the -Xmx parameter). However, setting the memory allocation larger than the available physical memory on your machine can cause issues with Java which will severely degrade your computer's performance and should be avoided. Memory usage configuration changes are made in the .ini file. Studio must be restarted for any changes to this file to take effect. Certain parameters in the AptanaStudio3.ini or TitaniumStudio.ini file are platform-dependent; For example, only OS X needs the XstartOnFirstThread parameter. Please follow the link http://docs.appcelerator.com/platform/latest/#!/guide/Setting_Memory_Levels for complete guidance.
  2. Parmeet Singh 2016-03-17

    Hi Sharif, I think your suggestion is for setting heap memory for Appcelerator Studio, but I want to define the heap size for my Windows Phone 8.1 app. I think my app is consuming RAM excessively and eventually resulting into crashing and I want to reduce that. What are the other ways to monitor the RAM consumption and Crash events for Windows Phone app?

JSON Source