Status
Not open for further replies.

demine0

Well-Known Member
Mar 25, 2003
57
0
156
I've had lots of problems with cpanel and ulimits. Im trying to run unreal IRCD 3.2 on my box from a shell. Im having problems b/c of the crapy ulimit cpanel sets up.

with root:
[email protected] [~]# ulimit -u
14335

I su to the shell my ircd is on and i do the same.
[email protected] [~/Unreal3.2]# ulimit -u
20

How can i change this to a perminate HIGH number? I created the account using adduser from root.

I've also tryed ulimit -u 65535 from root
then suing
but that doesnt work.

I get this error when i run the ircd.:
The OS enforces a limit on max open files
Hard Limit: 100 MAXCONNECTIONS: 1024
Fix MAXCONNECTIONS
 
Last edited:

Chaos_Theory

Registered
Jun 24, 2003
2
0
151
well you could goto
/etc/security/limits.conf
and manually set the limits

cPanel.net Support Ticket Number:
 

demine0

Well-Known Member
Mar 25, 2003
57
0
156
Thanks for the reply.
Any idea what i would put in there? What i want to set is not a domin. Its a shell account.

I also dont see a option for ulimit ot sile dyceptors there.

cPanel.net Support Ticket Number:
 

Chaos_Theory

Registered
Jun 24, 2003
2
0
151
if you read the commented text above it should give you a fairly good idea what to put

domain can be a username

ulimit -u shows the max amount of process aloud. thats why root is basically unlimited :P

cPanel.net Support Ticket Number:
 

danielaugustus

Well-Known Member
Oct 15, 2003
92
0
156
Well, I tried everything on this topic . Nothing did it !

Whe I change limits.conf I need to do what to it take efect ?


Cause I need more processes per user , actually 20, and more oepn file , 100 now.

I need to rise this . But I only can rise under root. I changed the /etc/profile to run a ulimit to rise it .... But simply didnt work.

The I tried /etc/security/limis.conf ... I changed it .. What needs to be done to work ?

Well, I need this. But I cant set thsio up ..
 

rodstewart

Active Member
Feb 4, 2004
38
0
156
Hamburg Germany
cPanel Access Level
DataCenter Provider
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

and all should work.

greets Sven
 

No-State

Member
Jun 12, 2004
5
0
151
This is the FD_SETSIZE fix

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.

Thanx Sven
 

katmai

Well-Known Member
Mar 13, 2006
564
4
168
Brno, Czech Republic
how did u edited them? i could not get it to work
 
Status
Not open for further replies.