You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "caojianfei (via GitHub)" <gi...@apache.org> on 2023/07/04 11:01:01 UTC
[GitHub] [apisix-java-plugin-runner] caojianfei commented on issue #146: debug mode is ok,run mode error (调试模式运行正常,运行模式报错)
caojianfei commented on issue #146:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/146#issuecomment-1620032841
> > > "['java', '-jar', '-DAPISIX_LISTEN_ADDRESS=unix:/tmp/runner.sock', '-DAPISIX_CONF_EXPIRE_TIME=3600', '-Xmx4g', '-Xms4g', '/usr/local/apisix-runner-bin/apisix-java-plugin-runner.jar']"
> >
> >
> > in run model, no need to set it up like this.
> > From your description of the reproduction steps, I was unable to reproduce them.
> > I think you can check if the `.sock` file exists under `apisix/conf/`.
> > In run mode, APISIX will generate the sock file under `apisix/conf/` and pass the address to the java runner.
>
> Thanks! The problem is solved, jdk is the decompressed version, you need to specify the full path of java.
>
> Modify it to the following configuration:
>
> ext-plugin: cmd: ['/home/jdk11/java', '-jar', '-Xmx4g', '-Xms4g', '/home/apisix-java-plugin-runner.jar']
我跟你有同样的问题?当时我用完整的java路径还是报同样的错误,你是在修改了java执行路径之后就解决问题了吗?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org