From: | valentin(dot)hocher(at)kabelbw(dot)de (Valentin Hocher) |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: initdb fails on Centos 5.4 x64 |
Date: | 2010-05-10 20:40:06 |
Message-ID: | 1273524006.4be86f26b924d@kabelbw.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> > The solution is very simple and can be done in the cPanel configuration, just disabled "Shell Fork Bomb Protection" in the security center. That's all. The ulimit restrictions are removed!
>
> Huh, that's interesting. With a name like that, I'd have thought it
> would set limits on number of processes, not virtual memory size.
> What ulimit settings did it change exactly?
"Shell Fork Bomb Protection"
Description:
Fork Bomb Protection will prevent users with terminal access (ssh/telnet) from using up all the resources on the server. Unchecked resource allocation can potentially lead to a server crash.
It is recommended that this protection be enabled for servers providing terminal access.
The only thing I discoverd if enabled is the following entry in /etc/profile (if disabled, there is no ulimit set)
#cPanel Added Limit Protections -- BEGIN
#unlimit so we can run the whoami
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
LIMITUSER=$USER
if [ -e "/usr/bin/whoami" ]; then
LIMITUSER=`/usr/bin/whoami`
fi
if [ "$LIMITUSER" != "root" ]; then
ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
else
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
fi
#cPanel Added Limit Protections -- END
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Colson | 2010-05-10 21:15:12 | Re: How to do pg_dump + pg_restore within Perl script? |
Previous Message | justin@magwerks.com | 2010-05-10 20:37:33 | files stored in the database |