Closed theapache64 closed 2 months ago
What happens if you set it to less than 4G? like -Xmx2G.
Does the output change or is it always 4096?
Yes. Its always 4096
I cannot reproduce.
Tried a sample app, you can see here. https://github.com/shannah/test-set-memory/releases
I add a tooltip to show min and max memory.
startButton.setToolTipText(
"Free memory: " + Runtime.getRuntime().freeMemory() + "; "
+ "Total memory: " + Runtime.getRuntime().totalMemory() + "; "
+ "Max memory: " + Runtime.getRuntime().maxMemory());
The package.json: https://github.com/shannah/test-set-memory/blob/master/package.json
With args:
"args": [
"-Xms8G",
"-Xmx8G"
],
When I changed this to 4G, it comes up with ~4G memory in the tooltip. Bump it to 8G, and the tooltip adjusts accordingly.
Tested in Mac and Windows.
@shannah I've the same config : https://github.com/theapache64/dex-diff/blob/31a19516b4ef4f89435ab15469ead37813f02774/package.json#L16 and it still doesn't work for me. Did you get chance to test it a CLI/terminal app ?
@shannah I did a small log debugging and it looks like the args are not getting attached in here :
what might be the reason ? 🤔
and it works when i manually inject the args like this
Here's my
package.json
but when I query the
maxMemory
, I get this