ulimit issue with open files descriptor


 
Thread Tools Search this Thread
Operating Systems Solaris ulimit issue with open files descriptor
# 1  
Old 03-07-2012
ulimit issue with open files descriptor

We have lots of error with "Too many open files" issue. So when I increase the limit to 36656 as suggested by this forum, and when i log out from the platform, it always went back to origin value, what has went wrong ? please any suggestion ?

Code:
root@hsbc_milan> ulimit -a
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 4096 <<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

root@hsbc_milan> ulimit -n 65535
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 65535<<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

when i log out and log in again, the value back to the origin value again!

Code:
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 4096 <<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

the /etc/system setting has the following value,

Code:
* Added by update-etc-system.fin.
set rlim_fd_max=65535
set rlim_fd_cur=65535


Any helps please ?

---------- Post updated at 11:18 AM ---------- Previous update was at 09:21 AM ----------

nobody ? Smilie
# 2  
Old 03-07-2012
Check /etc/profile and and "standard" user's .profile files (e.g., .bashrc for bash users) for ulimit.

Otherwise create a
Code:
ulimit -n 65335

setting in the appropriate file, probably /etc/profile or your home directory .profile.

The ulimit command does not persist across logins.
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Bad exchange descriptor : not able to remove files under zpool

Hi , One of my zone went down and when i booted it up i could see the pool in degraded state with some check sum errors . we have brought the pool online after scrubbing. But few files are showing this error Bad exchange descriptor Please let me know how to remove these files (2 Replies)
Discussion started by: chidori
2 Replies

2. Shell Programming and Scripting

PERL - issue with OPEN

Hi, I have a menu script written in PERL which calls some shell scripts and displays the return. I'm having a problem with OPEN. A section of the code is below: `./scriptlist.ksh 1`; open OUTPUT, "</home/$SCRIPTUSER/output"; { local $/ = undef; $_ =... (2 Replies)
Discussion started by: chris01010
2 Replies

3. Shell Programming and Scripting

Open vi with a command issue

Solaris 5.8, ksh I need to open everyone's favorite editor, vi of course, with a command that will place me on a search string at the time of invocation: Given this data file: user1 pts/1 Aug 29 13:22 (10.12.214.101) user2 pts/2 Aug 29 09:56 (10.12.212.132) user3 pts/3 ... (4 Replies)
Discussion started by: gary_w
4 Replies

4. UNIX for Dummies Questions & Answers

File processed in Unix had issue open using notepad

Dear all, I had a columned based file after processed from my script. In unix platform, my file is ok, with all columns sorted out nicely. But when i open in windows notepad, the columns are running out of order. Can some one help?? Thanks alot in advance (4 Replies)
Discussion started by: ymeyaw
4 Replies

5. Solaris

Modify ulimit nofiles descriptor

Hi, All I need to increase the ulimit value permanently without changing /etc/system file. i.e nofiles descriptor. For all NIS Users logging in. I know the command to do this: # ulimit -Sn 4096 This change is temporary. So, I went on adding this command in the /etc/profile. ... (6 Replies)
Discussion started by: santh08
6 Replies

6. UNIX for Dummies Questions & Answers

ISSUE and ISSUE.NET files

In LINUX(CentOS, RedHat) is there a way to have the banner statement appear before the logon instead of after the logon? In UNIX and Windows the banner appears before a person actually logs on, what I'm seeing in LINUX is that it appears after the login(ftp, telnet, SSH). Thanks (0 Replies)
Discussion started by: ejjones
0 Replies

7. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

8. Solaris

open solaris FTP issue

Hi, I want to ftp from my virtual box to my desktop which is a windows machine. I have installed open solaris on my virtual box. though that is in network i am unable to ftp to my windows and vice versa. Please help (3 Replies)
Discussion started by: amult
3 Replies

9. UNIX for Advanced & Expert Users

Too Many files open

Hi , We are using a Tool which runs on Unix Server. Have a Event which have some join operation and tries to open files depending on the join operation. So get the error config/variants/orcl6/partitions/ml6/data/ap_PCardMap.csv (Too many open files) Can someone please... (3 Replies)
Discussion started by: shashank_recj
3 Replies

10. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
Login or Register to Ask a Question