ulimit setting problem on Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris ulimit setting problem on Solaris
# 1  
Old 11-04-2004
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.
# 2  
Old 11-05-2004
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).
# 3  
Old 11-05-2004
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help with setting coredumpsize using ulimit

A coredump is being created by one of our applications on Solaris server and occupying entire space on the mount, thereby bringing down the application. While we try to identify the root cause, i tried to limit to limit the size of the core dump. Executed below command in shell and also updated... (2 Replies)
Discussion started by: kesani
2 Replies

2. AIX

Ulimit setting

Hi, Our application team is asking me to set ulimit parameter in my AIX 6.1 TL8 box. Some of them i set already. address space limit (kbytes) (-M) unlimited locks (-L) unlimited locked address space (kbytes) (-l) 64 nice (-e) ... (3 Replies)
Discussion started by: sunnybee
3 Replies

3. Red Hat

setting ulimit for a user

The root user runs the following ulimit -a | grep open and gets a result of open files (-n) 8162 A user runs the same command and gets a result of open files (-n) 2500 How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies

4. UNIX for Advanced & Expert Users

Help with Ulimit Setting

All, Our SA is considering setting the max open files from 2048 to 30K. This sounds like a drastic change. Does anybody have an idea of the negative impacts of increasing the open files too high? Would like to know if this change could negatively impact our system. What test should we run to... (2 Replies)
Discussion started by: wcrober
2 Replies

5. UNIX for Advanced & Expert Users

Setting Ulimit problem

I changed the standard Ulimit sometime back. But when I change it back, the setting does not get updated. How do I make the change permanent Waitstejo (7 Replies)
Discussion started by: Waitstejo
7 Replies

6. Solaris

Problem while setting NIS master on Solaris 10

Hi All, I get below error while running cd /var/yp /usr/sbin/ypinit -m Error Code - 1 updated netmasks make : warning : target all not remade because of errors current working dir /var/yp *** error code 1 *** make : fatal error : command failed for target 'k' error running... (4 Replies)
Discussion started by: naw_deepak
4 Replies

7. UNIX for Advanced & Expert Users

setting ulimit -n with a value more than 1024000

I would like to set the maximum number or open files per process to be greater than 1024000 (for specific application scalability purpose). I am using RHEL 5.3/Ext4. %sysctl fs.file-max fs.file-max = 164766821 I also have added the folloing to /etc/security/limits.conf * ... (7 Replies)
Discussion started by: Hsianglung Wu
7 Replies

8. SCO

problem with ulimit

hi, i cant set ULIMIT for normal user (file size more than 2gb).but in root user it is working fine.in user it is giving error like "limit exceeded (priviledged user)". (2 Replies)
Discussion started by: prakrithi
2 Replies

9. Shell Programming and Scripting

Setting Ulimit

How do i set ulimit for user (4 Replies)
Discussion started by: Krrishv
4 Replies

10. UNIX for Dummies Questions & Answers

ulimit problem

i've encountered the following problem with sco unixware7. after using the "ulimit -f unlimited" command and then using "ulimit -a" it lists the filesize as unlimited. BUT, when type the ulimit command without parameters, the output is given as 4194303 so i can't create a file bigger than... (4 Replies)
Discussion started by: roydv
4 Replies
Login or Register to Ask a Question