1825795 Members
2288 Online
109687 Solutions
New Discussion

Re: uling ulimit command

 
MikeL_4
Super Advisor

uling ulimit command

I have client trying to set ulimit witin there application. I there a different command structure between ksh & sh ?? they are using: ulimit -n 8000 and they say it isn't working ??
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: uling ulimit command

How is it not working? What is happening?

As to usage have a look at the man pages for the shells.

# man sh-posix

# man ksh
MikeL_4
Super Advisor

Re: uling ulimit command

Thanks, the problem was there application was executing a script that was setting the ulimit to 2048. Later on the application was executing another script that was trying to set the limit higher and failing. Problem being that once ulimit is set it can't be raised higher.
Bill Hassell
Honored Contributor

Re: uling ulimit command

Actually, not quite correct. ulimit can set values higher and lower but the -S option must be used. ulimit -Sn 2048 can be raised at a later time. Tell the client to add -S to all changes to ulimit. Note also that ksh ulimit was just recently enhanced. ulimit -a shows all settable values in the POSIX sh shell. Older (unpatched) versions of ksh had only one option - ulimit -a would return an error.


Bill Hassell, sysadmin