Skip to content

Commit 63aced9

Browse files
committed
README: document how to increase the max heap
1 parent 9b87aa4 commit 63aced9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ Built on [pyjnius](https://pyjnius.readthedocs.io/en/latest/) and [jgo](https://
1313
'1.8.0_152-release'
1414
```
1515

16+
To pass parameters to the JVM, such as an increased max heap size:
17+
18+
```python
19+
>>> import scyjava_config
20+
>>> scyjava_config.add_options('-Xmx6g')
21+
>>> import scyjava, jnius
22+
>>> Runtime = jnius.autoclass('java.lang.Runtime')
23+
>>> Runtime.getRuntime().maxMemory() / 2**30
24+
5.33349609375
25+
```
26+
1627
See the [Pyjnius documentation](https://pyjnius.readthedocs.io/en/latest/) for more about calling Java from Python.
1728

1829
## Use Maven artifacts from remote repositories

0 commit comments

Comments
 (0)