e-infinity
11-11-2003, 02:58 PM
I just upgraded to Cpanel / WHM since I ran IRCd hosting only, now I really need some advice / help here, when Cpanel / WHM was installed the FIle Descriptor (Hard limit) was set to a mere 100!!!!!! It used to be 1024, and even then I was trying to up it to at least 10240 (System Wide), The user existed before the Cpanel installation (ircd). If anyone has a clue how to fix it on RH9 please reply ASAP!
I already tried this on RH9 -
ulimit -Hn 10240
ulimit -Sn 10240
echo 65535 > /proc/sys/fs/file-max
sysctl -w fs.file-max=65535 - This one wont work with Cpanel / WHM being present.
linux-tech
11-11-2003, 03:23 PM
in /etc/init.d/httpd
there should be a bunch of ulimit lines.
move the largest one to the top, and restart httpd.
This SHOULD solve the problem
e-infinity
11-11-2003, 03:27 PM
This isn't just HTTPd, this is global :S
Any ideas? Anyone?
linux-tech
11-11-2003, 03:36 PM
Did you even try what was suggested?
The reason this is happening is because when you start httpd, those values overwrite everything else that you have setup.
Of course in later cpanel installs, I notice that this value isn't in httpd, but it IS in earlier installs.
Again, move the largest number to the top, restart httpd. Once you've done that, simply type ulimit, and you should see the largest httpd size (think it's 10240) .
e-infinity
11-11-2003, 03:53 PM
#!/bin/sh
ulimit -n 1024
ulimit -n 4096
ulimit -n 8192
ulimit -n 16384
???
Why would they make apache do the system globally, BTW: those are the original settings.
Edit:
ulimit -n 16384
su - ircd
./unreal2/unreal start
shows this \/
Hard Limit: 100 MAXCONNECTIONS: 1024
Fix MAXCONNECTIONS
Ouch, but then where could I possibly find the header file in RH9 (I did this in RH7.3 without a problem)
No-State
07-24-2004, 10:27 PM
Do the following,
go into /etc/profile.d/ and edit the two files limits.csh and limits.sh.
after that edit the file /etc/profile
This has worked on my system today :D
Steven
07-25-2004, 12:01 AM
have you noticed this is a pretty old post?