ulimit setting problem on Solaris | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

ulimit setting problem on Solaris

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-04-2004
kiem kiem is offline
Registered User
 
Join Date: Nov 2004
Last Activity: 15 January 2013, 12:10 PM EST
Location: Elk Grove, CA
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user?

by default, the root login has the following ulimits:

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 1024
memory(kbytes) unlimited

I set the nofiles to a larger value:

# ulimit -n 2048
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 2048
memory(kbytes) unlimited

The problem is that after i log off, and log back, I get the default values again:

root@walton:> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 1024
memory(kbytes) unlimited


I've uncommented the /etc/default/login as:

ULIMIT=0


Here's the current value in the /etc/system file:

set rlim_fd_cur=2048


I even did the following:

ulimit -Hn 2048 followed by
ulimit -n 2048

It's only good until I log off.

I keep getting the default value everytime I get on.

Can someone help please.
Sponsored Links
    #2  
Old 11-05-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 17 October 2014, 8:46 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 32 Times in 9 Posts
You could add the command to either the account's .profile or to the system's /etc/profile (and /etc/.login for csh - note the command is unlimit descriptors for csh).
Sponsored Links
    #3  
Old 11-05-2004
kiem kiem is offline
Registered User
 
Join Date: Nov 2004
Last Activity: 15 January 2013, 12:10 PM EST
Location: Elk Grove, CA
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
The problem i found is that there's a missing line in the /etc/system..

Had to add the line:
set rlim_fd_max=4096

Without this condition, the default value for nofiles is half of the rlim_fd_cur.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
setting ulimit for a user jsanders Red Hat 2 04-12-2012 03:35 AM
Help with Ulimit Setting wcrober UNIX for Advanced & Expert Users 2 04-27-2011 02:24 PM
Setting Ulimit problem Waitstejo UNIX for Advanced & Expert Users 7 06-14-2010 11:01 AM
setting ulimit -n with a value more than 1024000 Hsianglung Wu UNIX for Advanced & Expert Users 7 08-04-2009 12:39 PM
Setting Ulimit Krrishv Shell Programming and Scripting 4 01-22-2007 08:35 AM



All times are GMT -4. The time now is 06:50 PM.