Skip to content

Commit a47e670

Browse files
authored
Update README.md
1 parent 005f1ce commit a47e670

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ However, for developers, if the `RAPIDWRIGHT_PATH` environment variable is set t
5454
the Java VM will use the version of RapidWright found according to the standard
5555
`CLASSPATH` environment variable instead.
5656

57+
# Custom JVM Options
58+
`JAVA_TOOL_OPTIONS` can be used to add options to JPype's JVM, which is started automatically. For example:
59+
60+
```
61+
$python3 -c "import rapidwright; from java.lang import Runtime; print(Runtime.getRuntime().maxMemory() / 1024 / 1024)"
62+
14279.5
63+
$ JAVA_TOOL_OPTIONS="-Xmx32G" python3 -c "import rapidwright; from java.lang import Runtime; print(Runtime.getRuntime().maxMemory() / 1024 / 1024)"
64+
Picked up JAVA_TOOL_OPTIONS: -Xmx32G
65+
29127.5
66+
```

0 commit comments

Comments
 (0)