Zhang,Yuexiang
Zhang,Yuexiang
Was there only single nginx worker process? If so it maybe reached a deadlock without thread pool or coroutine enabled.
It seems with wrong jvm configuration nginx worker process can not start successfully.
@hgtysew 请先临时把nginx.conf中设置成非daemon模式并且单进程模式看看启动的时候控制台有没有什么错误提示: ``` daemon off; master_process off; ``` 另外coroutine模式的使用确实不太容易,因为要生成wave配置文件,除非JVM提供原生的支持并且issue #250 实现 。
@kaushikjeet Could you please give more details? I have done a simple load test and it got no error. The test used - 25 worker processes - 50 client threads,...
Is there any java 8 lambda expression in your handler?
@dennus Sorry for too late reply. Could you please show a minimal example to reproduce it? I'm really very busy these days.Thanks!
NginxCloureAsynSocket doesn't support HTTPS/SSL directly.
Please try to add tow options to run with java's 9+ if you use `--illegal-access=deny` ``` --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/sun.nio.cs=ALL-UNNAMED ```
@kaushikjeet Please use [jvm_options](https://nginx-clojure.github.io/directives.html#user-content-jvm_options), e.g. ``` jvm_options "--illegal-access=deny"; jvm_options "--add-opens=java.base/java.lang=ALL-UNNAMED"; jvm_options "--add-opens=java.base/sun.nio.cs=ALL-UNNAMED"; ```
@baens Please try to use directive [proxy_set_header](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header). BTW you can also try to set variables within rewrite handlers and use them with proxy_set_header.