Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Can't change action memory limit

Avatar

Level 1

Hi, I'm currently not possible to change the memory limit of my action, see me "app.config.yaml":

application:
  actions: actions
  runtimeManifest:
    packages:
      temp:
        actions:
          test:
            function: actions/test.js
            web: yes
            runtime: nodejs:14
            limits:
              memory: 512

 

Do the docs are lying, it's a bug, or it's an account limitation?

For example, the "timeout" option is working well.

3 Replies

Avatar

Employee

Hi, while you change it, what is the error message like? 

Avatar

Level 1

Hi, there is no error. aio app:deploy runs successful, but my action only allow to use 256Mb RAM.

 

$ aoi --version
@adobe/aio-cli/8.3.0 linux-x64 node-v16.15.0

 

Meanwhile, I was successful increasing the RAM by wsk command:

wsk action update temp/test --memory 512

Avatar

Level 1

Hi,

There seems to be a mismatched between documentation and implementation. I created a ticket to get that sorted : https://github.com/adobe/aio-lib-runtime/issues/105.

 

In the mean time if you use `memorySize` instead of `memory` you will be able to configure the memory of your action.

 

Félix.