You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/05/24 06:07:04 UTC

[GitHub] [apisix-java-plugin-runner] licheng541472110 commented on issue #146: debug mode is ok,run mode error (调试模式运行正常,运行模式报错)

licheng541472110 commented on issue #146:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/146#issuecomment-1135448886

   1.The operating system is centos7. Running in debug mode, everything works fine.
   After compiling the jar file, after running the following command, the configuration and enabling plugin can be used normally.
   
   "java -jar -DAPISIX_LISTEN_ADDRESS=unix:/tmp/runner.sock -DAPISIX_CONF_EXPIRE_TIME=3600 /home/apisix-java-plugin-runner.jar"
   
   "ext-plugin:
     path_for_test: /tmp/runner.sock"
   
   **2.The mode of switching to official operation cannot run successfully**
   
   Modify the configuration file "config.yaml"
   
   The following is the configuration according to the document, which does not work properly
   
   "ext-plugin:
     cmd: ['java', '-jar', '-Xmx4g', '-Xms4g', '/home/apisix-java-plugin-runner.jar'] "
   
   
   Try to modify it to the following parameters, the access route can display the request header, but not the main body.
   
   "['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']"
   
   
   According to the document, I have tried many times, but it can only run normally in the debug mode, and it can never be successful in the official running mode.
   
   Can you speak Chinese
   


-- 
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