In my STD framework, it tracks all PB App memory usage whether its a Mobile, Web, Native, PowerClient or now PowerServer based (deployed) application. I have noticed the tight memory usages as well on the various mobile devices running Android or iOS. Here is an example App that I just ran this AM and here is what the framework's App log states ....
Notice that the framework has a "Memory Threshold" setting and when that value is exceeded, it logs the issue. This is threshold is checked after every Window is opened and/or DWO is retrieved. So I agree, when running PowerServer Mobile Apps, the amount of memory can be tight on these devices.
AFAIK: This is the normal overhead currently of running under AWS.
Also note that this App was running under PowerServer 2020 and AWS build 2703.
your snapshot shows the warning in the AWS main page. Is it popping up as soon as you start AWS for the first time? Or after you open/close deployed apps a few times? In the first case you may seem to run on poor hw.
If instead the warning is popping up after running your apps, it might be implementation issue. I experienced the warning (and subsequent crash of the app):
after repeated open/close of the camera app via eon_camera_ex API
when performing multiple same ds/dw retrieve in a row. In this case there is a memory leak (bug #6314) that Appeon has already fix and will probably be distributed in next AWS release.
The solution is to optimize your code. Mobile device has a lot less memory that a computer so if you develop in same way you do client/server you will run into memory issues. Few tips are stay way from global things, always destroy objects as soon as possible, retrieve the minimal number of rows into DataWindows, etc.
Best regards, Armeen
There are no comments made yet.
There are no replies made for this question yet. However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »