Closed mayunSaicmotor closed 9 months ago
correct the verion is apisix-java-plugin-runner 0.4.0
remove all whitespace and it ok now
cmd: ['/jdk17/bin/java', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '--add-opens', 'java.base/java.math=ALL-UNNAMED', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang.reflect=ALL-UNNAMED', '-jar', '/path/to/dubbo-plugin-0.0.1-SNAPSHOT-exec.jar']
Issue description
Environment
Dear, I want to add more vm configuration(--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED) for the jsava start cmd below, but does not work. ext-plugin: cmd: ['java', '-jar', '-Xmx4g', '-Xms4g', '/path/to/apisix-runner-bin/apisix-java-plugin-runner.jar']
I tried the 2 ways , both don't work. Is there anyway to add vm configurations? cmd: ['/jdk17/bin/java', '--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED', '-jar', '-Xmx1g', '-Xms1g', '/path/to/dubbo-plugin-0.0.1-SNAPSHOT.jar'] # d
cmd: ['/jdk17/bin/java', '--add-opens java.base/java.lang=ALL-UNNAMED', '--add-opens java.base/java.math=ALL-UNNAMED', '--add-opens java.base/java.util=ALL-UNNAMED', '--add-opens java.base/java.lang.reflect=ALL-UNNAMED', '-jar', '-Xmx1g', '-Xms1g', '/path/to/dubbo-plugin-0.0.1-SNAPSHOT.jar']
Environment APISIX version (run apisix version):3.7.0 Operating system (run uname -a):linux centos 7