Forum: NGINX too many sites, change server_names_hash_max_size?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E84e93646376def3fbed0907fe9335e1?d=identicon&s=25 Max (Guest)
on 2009-03-06 06:27
(Received via mailing list)
Hello,

My nginx is hosting more than 200 sites. But when I reload it, it said I
need to increase the following size:

server_names_hash_max_size
server_names_hash_bucket_size

So I just increased it to:

   server_names_hash_max_size 1024;
   server_names_hash_bucket_size 128;

After that, nginx can reload, but my server is always out of memory(4gb
in
my server). So any body know if I change the above variables, will it
affect
the performance of the server?

Thanks.

Max
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-03-06 08:08
(Received via mailing list)
On Fri, Mar 06, 2009 at 01:20:33PM +0800, Max wrote:

>    server_names_hash_max_size 1024;
>    server_names_hash_bucket_size 128;
>
> After that, nginx can reload, but my server is always out of memory(4gb in
> my server). So any body know if I change the above variables, will it affect
> the performance of the server?

No, the hash may take up to about 128 * 1024 bytes, i.e., just 128K.
What do you mean by "out of memory" ?
D0a98f6304ff122ac9b487ff8275d8bb?d=identicon&s=25 Payam Chychi (Guest)
on 2009-03-06 09:09
(Received via mailing list)
Hey,

I dont think this is because of nginx, linux tends to utilize your RAM
regardless of what your running (may or may not be performance
impacting...)

I recently came a cross the same issue and after much reading it
turned out to be the behavior or the OS and not the application

-Payam
E84e93646376def3fbed0907fe9335e1?d=identicon&s=25 Max (Guest)
on 2009-03-06 10:00
(Received via mailing list)
Hi,

I also don't think it's related to nginx itself. I think it's the
problem of
my wordpress supercache rewrite rule. It seems the rewrite rule is not
working correctly. I am working on that to see what's problem now.
Thanks
guys!

Max
This topic is locked and can not be replied to.