LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2016, 10:57 AM   #1
porscheman170
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Rep: Reputation: Disabled
Question Permanently setting Max Memory size - Unlimited


Hello,

I am an admin for a multiple Linux servers that seem to have different ulimit -m settings. I am trying to set the Max Memory Size to unlimited to all of them for consistency, however I can not figure out how to permanently change this setting. I have checked /etc/security/limits.conf but it doesn't seem to be defined there. Is there another place I should be looking?

Thanks,
 
Old 11-29-2016, 01:28 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi porscheman170 and welcome to LQ.

It will be helpful to cite the Linux distribution for these servers, in name of distribution and version and also note whether or not there are different distros on these various servers, so that other members can give you correct advice for your situation.
 
Old 11-29-2016, 01:45 PM   #3
porscheman170
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Sorry, the servers are all running SLES11SP3.

Thanks.
 
Old 11-29-2016, 01:59 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi,

Please take a look at this link, and note that a reboot was necessary. They cite to use pam_limits

http://unix.stackexchange.com/questi...r-10-4-permane

Obviously set different parameters than that particular question is discussing.
 
Old 11-29-2016, 05:55 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I would suggest, however, that you probably should set limits that are less than "unlimited," especially on a server. You want to be sure that, if a particular process "runs away," it will not starve-out anyone else. Consider what limit would be "appropriate, even generous," but that would block any malfunctioning process that was stuck in some kind of loop and gobbling-up memory. Eventually, Linux should be told to refuse the request.

(Often, the process dies when it runs into this, and this just might be your first indication that the process is malfunctioning!)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pci express : setting max payload size in endpoint nagarasr Linux - Software 0 02-03-2011 03:23 AM
max size of shared memory dianarani Linux - General 6 05-25-2007 01:55 AM
max size of shared memory dianarani LQ Suggestions & Feedback 1 05-24-2007 01:02 AM
Setting max folder size mull300 Linux - Security 1 01-24-2006 05:02 PM
Install Oracle 9i on slack 10: setting the max shared memory parameter permanently rsumbeling Linux - General 0 12-10-2004 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration