January 15, 2014 12:48AM
> With the default setting pipe is not used.
>
> Pipe is only used for enable jvm thread pool mode only when jvm_workers >
> 0
> (jvm_workers default = 0).
>
> Further more pipe is never used to transfer the while request or response
> message.
> When under jvm thread pool mode, pipe is only used to transfer a event
> flag
> (only one pointer size)。
>
> ONLY IF you cann't resolve your performance problems by increasing
> worker_processes or reducing single request-response time, you can
> consider
> the way of setting jvm_workers > 0 which is not encouraged.
>
> Thread switch cost means Thread context switch cost.
>

Sorry, but are you saying that your suggested usage for concurrency is
multiprocessing ?

Multiprocessing is completely alien in the jvm (the vm is not even
fork-friendly) and that would mean the nginx worker completly give control
to the jvm and this is something bad as the jvm is a blocking vm.

The jvm world is thread-centric (and trust me, i needed to deal with
dozens of different threading implementations for uWSGI and the jvm is the
best one) so i am quite doubtful saying "multiprocess by default" would be
a successfull approach (well the amount of memory per-app will be huge)


--
Roberto De Ioris
http://unbit.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 14, 2014 11:42AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 14, 2014 10:53PM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

roberto January 14, 2014 11:44PM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 15, 2014 12:31AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

roberto January 15, 2014 12:48AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 15, 2014 03:45AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

roberto January 15, 2014 03:58AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 15, 2014 04:29AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

roberto January 15, 2014 04:36AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep January 15, 2014 05:23AM

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

xfeep April 26, 2014 12:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready