Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to set  soft limit as unlimited for stacksize in linux

Posted on 2011-02-15
8
Medium Priority
?
1,587 Views
Last Modified: 2013-12-15
i want to set stack size limit to unlimited for soft limit for particular user on RHEL5.3

i set to hard limit to unlimited and it's showing if i give ulimit -Hs but if i set unlimited or any other value for soft limit in /etc/security/limits.conf it's not getting reflected.
i closed the session and re-opened it also.

0
Comment
Question by:manean
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34904392
Hi,

could it be that there is a ulimit command in the user's .profile resetting the limit to the old value?

What is the immediate effect of "ulimit -Ss unlimted"? Check with "ulimit -Ss"!

wmp
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 34904421
... and is there a /etc/security/limits.d/ directory? If so, what's in there?

Further, please try "-1" instead of "unlimited" in limits.conf. Some OS'es don't suppoert "unlimited".
Also remember that you'll have to set both hard and soft values in limits.conf.

wmp
0
 

Assisted Solution

by:manean
manean earned 0 total points
ID: 34904554
Hi

there is no ulimit command in user profile.
after logging in i have set  " ulimit -s unlimited " and it's showing stack size as unlimited, but if open new session it's going to old setting.
i have set up value for both soft and hard limit, but hard limit only permenatly getting reflected but not
soft limit.

/etc/security/limits.d is empty.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 14

Expert Comment

by:Monis Monther
ID: 34904799
Set it under user's home dir .bashrc file.

/home/username/.bashrc

This will enable the ulimit in both logon and nologon Terminals.

0
 
LVL 10

Expert Comment

by:Martin_J_Parker
ID: 35213830
What have you actually got in the /etc/security/limits.conf file?

You need 2 lines in there as follows:
* soft core unlimited
* hard core unlimited
0
 

Author Comment

by:manean
ID: 35868347
its working now.
0
 
LVL 10

Expert Comment

by:Martin_J_Parker
ID: 35877146
Glad to hear it's working but please do tell us what the solution was. It may benefit others with the same problem in the future.
0
 

Author Closing Comment

by:manean
ID: 35892817
Its working.
0

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question