Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ulimit -n above 1024?

Discussion in 'General Discussion' started by demine0, Mar 15, 2005.

  1. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    How do i get my ulimit -n above 1024 for a useraccount (or all accounts) on my server?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    It's usually set in /etc/profile and /etc/bashrc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    so far i've changed the value in bashrc, profile, limit.csh, limit.sh, and nothing has changed it.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Are you logging out and back in again ;) Have you also checked the users own .bash_profile or .bashrc if they have one?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    i have logged out and logged in again. Also none of my users have their own .bashrc or .bash_profile files.
     
  6. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    anyone have a solution to this?
     
  7. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168
    After updating /etc/profile with the ulimit -n 16384 line - try rebooting your server.
     
  8. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    Tryed.. Not working. one of the cpanel techs told me that this has nothing to do with cpanel at all, and that i need to use the ulimit command.

    -bash-2.05b$ ulimit -n 10000
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    -bash-2.05b$


    I ran that under the user i want the ulimit to go up for.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice