Skip to content

Commit

Permalink
🐛 set upper limit on jvm memory for test runner
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Apr 15, 2024
1 parent 708078f commit a66d59f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ The easiest way to install Kantra is to get it via the container image.
> This must be run after each podman machine reboot.

Init your _podman_ machine :

* _**Podman 4 and below**_:

```sh
podman machine init <vm_name> -v $HOME:$HOME -v /private/tmp:/private/tmp -v /var/folders/:/var/folders/
```
```sh
podman machine init <vm_name> -v $HOME:$HOME -v /private/tmp:/private/tmp -v /var/folders/:/var/folders/
```

* _**Podman 5 and above**_:

```sh
podman machine init <vm_name>
```

Increase podman resources:

Expand Down
1 change: 1 addition & 0 deletions pkg/testing/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var defaultProviderConfig = []provider.Config{
"bundles": "/jdtls/java-analyzer-bundle/java-analyzer-bundle.core/target/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar",
"depOpenSourceLabelsFile": "/usr/local/etc/maven.default.index",
provider.LspServerPathConfigKey: "/jdtls/bin/jdtls",
"jvmMaxMem": "2G",
},
},
},
Expand Down

0 comments on commit a66d59f

Please sign in to comment.