Re: "Out of memory" errors.. - Mailing list pgsql-general

From Lim Berger
Subject Re: "Out of memory" errors..
Date
Msg-id 69d2538f0708130959t51fef27bye0c554c86be44e8e@mail.gmail.com
Whole thread Raw
In response to Re: "Out of memory" errors..  ("Lim Berger" <straightfwd007@gmail.com>)
List pgsql-general
On 8/14/07, Lim Berger <straightfwd007@gmail.com> wrote:
> On 8/14/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> > Lim Berger escribió:
> >
> > > Thanks. I did "su postgres" and ran the ulimit command again. All
> > > values are the same, except for "open files" which is double in the
> > > case of this user (instead of 4096, it is 8192). Not sure what I can
> > > gather from that?
> >
> > Try "su - postgres" instead (which will run the user start scripts and
> > may modify the ulimits for that user), but note that the ulimit can also
> > be changed in the script that starts the Postgres process on system
> > boot.
>
>
>
> Wow, you are right! The "su - postgres" showed up with wildly
> different values! Most notably, the "max user processes" is only 20!!
> Whereas in the regular user stuff it was above 14000. Would you know
> how to change this in a CentOS Linux machine? Where can I find the
> startup settings for postgresql? Full values below:
>
>
>
> ~ > su - postgres
> -bash-3.00$ ulimit -a
> core file size          (blocks, -c) 200000
> data seg size           (kbytes, -d) 200000
> file size               (blocks, -f) unlimited
> pending signals                 (-i) 1024
> max locked memory       (kbytes, -l) 32
> max memory size         (kbytes, -m) 200000
> open files                      (-n) 100
> pipe size            (512 bytes, -p) 8
> POSIX message queues     (bytes, -q) 819200
> stack size              (kbytes, -s) 8192
> cpu time               (seconds, -t) unlimited
> max user processes              (-u) 20
> virtual memory          (kbytes, -v) 200000
> file locks                      (-x) unlimited
> -bash-3.00$
>




I tried doing "ulimit -u 90000" for instance, as postgres user, but it
tells me:

-bash-3.00$ ulimit -u 9000
-bash: ulimit: max user processes: cannot modify limit: Operation not permitted

pgsql-general by date:

Previous
From: "Lim Berger"
Date:
Subject: Re: "Out of memory" errors..
Next
From: Mary Ellen Fitzpatrick
Date:
Subject: Re: PITR for postgresql-7.3