Skip to content

Commit d213081

Browse files
committed
Add heapInitial and heapMax arguments and documentation
1 parent 67ef299 commit d213081

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ All CLI options are optional:
5858
--delayTransientStatuses -t Causes DynamoDB to introduce delays for certain operations. DynamoDB can perform some tasks almost instantaneously, such as create/update/delete operations on tables and indexes; however, the actual DynamoDB service requires more time for these tasks. Setting this parameter helps DynamoDB simulate the behavior of the Amazon DynamoDB web service more closely. (Currently, this parameter introduces delays only for global secondary indexes that are in either CREATING or DELETING status.)
5959
--optimizeDbBeforeStartup -o Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.
6060
--migration -m After starting dynamodb local, run dynamodb migrations.
61+
--heapInitial The initial heap size
62+
--heapMax The maximum heap size
6163
```
6264

6365
All the above options can be added to s-project.json to set default configuration: e.g
@@ -69,6 +71,8 @@ custom:
6971
port: 8000
7072
inMemory: true
7173
migration: true
74+
heapInitial: 200m
75+
heapMax: 1g
7276
migration:
7377
dir: ./offline/migrations
7478
```

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class ServerlessDynamodbLocal {
9090
migration: {
9191
shortcut: 'm',
9292
usage: 'After starting dynamodb local, run dynamodb migrations'
93+
},
94+
heapInitial: {
95+
usage: 'The initial heap size. Specify megabytes, gigabytes or terabytes using m, b, t. E.g., "2m"'
96+
},
97+
heapMax: {
98+
usage: 'The maximum heap size. Specify megabytes, gigabytes or terabytes using m, b, t. E.g., "2m"'
9399
}
94100
}
95101
},

0 commit comments

Comments
 (0)