Re: pg_pconnect - Really persistent ?
От | Hervé Piedvache |
---|---|
Тема | Re: pg_pconnect - Really persistent ? |
Дата | |
Msg-id | 3A37602A.59D5FC2F@elma.fr обсуждение исходный текст |
Ответ на | pg_pconnect - Really persistent ? (Hervé Piedvache <herve@elma.fr>) |
Список | pgsql-php |
Hi Alexey, At first thanks for your answer ;) Alexey Borzov a écrit : > > HP> I do what you said ... but still have trouble with postgresql ... I have > HP> a message like too many files opened in same time ... on the postgresql > HP> server my max limit is 8192 files ... !! So to save my trouble for the > HP> moment the only way I found is to cron a apache graceful each minute ! > HP> :((( > Increase the limit on open files: now each postgres can have > 8192/256=32 open files max, and it needs to have much more... OK is 32768 is ok ? 32768/256=128 max files by backend ... I don't know (and would like to know if possible) what is the implication of this file-max for my server ? What is the maximimum size of the file max for a linux ? In fact that depends of what ? ;) > HP> # > HP> StartServers 20 > HP> MinSpareServers 64 > HP> MaxSpareServers 128 > HP> # > Isn't MaxSpareServers a bit high? At each given time you can have > 128 idle Apaches and each of these 2 idle Postgreses connected (256 > total), which is actually your limit. Ouch! I understand what you mean ... but you can see my Apache log file of today ... [Wed Dec 13 12:16:14 2000] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 39 total children [Wed Dec 13 12:16:15 2000] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 0 idle, and 47 total children [Wed Dec 13 12:16:16 2000] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 12 idle, and 63 total children [Wed Dec 13 12:16:17 2000] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 45 idle, and 95 total children What can I do ... and why I'm in this case ? Many thanks per advance for your help ! regards, -- Hervé
В списке pgsql-php по дате отправления: