1. jAck Chan
  2. PowerBuilder
  3. Wednesday, 2 June 2021 09:22 AM UTC

Hi All,

 

My Appeon Workspace always prompt "Low-Memory Warning" in iPhone and Android Phone, is there any solution? Thank you.

Attachments (1)
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 2 June 2021 14:41 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Jack;

  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.

Regards ... Chris

 

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 2 June 2021 15:38 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jack,

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

 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 2 June 2021 16:04 PM UTC
  2. PowerBuilder
  3. # 2

Hi Jack,

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.

Best,

.m

 

Comment
There are no comments made yet.
jAck Chan Accepted Answer Pending Moderation
  1. Thursday, 3 June 2021 01:12 AM UTC
  2. PowerBuilder
  3. # 3

Dear All,

 

Thanks, I'll review on my code first, thank you.

 

Best regards,

jAck

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.