Any Additional Steps After Adding New RAM To Sever?


 
Thread Tools Search this Thread
Operating Systems AIX Any Additional Steps After Adding New RAM To Sever?
# 8  
Old 05-26-2011
Hi,

is your java app potentially 32bit like websphere or certain other apps. Than you might run into the trap with limited shared memory as this is not unlimited like for 64bit apps. To work around this, put export EXTSHM=ON in the profile of the user which runs the java application.
Further several Java apps are only allowed to consume as much (shared) memory as explicitely is allowed within the application configuration.
And yes your memory settings do not allow the system to use the memory it has. Try the settings we keep recommending -
Code:
vmo -p -o minperm%=3
vmo -p -o maxperm%=90
vmo -p -o maxclient%=90
vmo -p -o minfree=960
vmo -p -o maxfree=1088

try to mount your filesystems with noatime and consider carefully if you need to really keep things in memory - if not consider mounting the corresponding filesystem rbrw which sends back the memory into the free list as soon as the IO is completed.
Kind regards
zxmaus
# 9  
Old 05-27-2011
eehhhmm.. that means that for example when i execute a java process without defining the heap size, the maximum size the heap will grow is 32MB? Once the heap reaches 32MB, then it will exit with an 'OutOfMemory' error. unless I set the ulimit memory to 'unlimited' then it will exceed 32MB, right?

I am trying to understand what the ulimit memory is.
# 10  
Old 05-27-2011
pretty much yes - the ulimit sets the soft limit for the largest amount of physical memory a user's process can allocate.

Regards
zxmaus
# 11  
Old 05-30-2011
Quote:
Originally Posted by zxmaus
pretty much yes - the ulimit sets the soft limit for the largest amount of physical memory a user's process can allocate.

Regards
zxmaus
Ok, thanks everyone.. the first thing to do now is to set the ulimit for memory to 'unlimited'. Will monitor for awhile and see if it's ok..

---------- Post updated at 02:54 PM ---------- Previous update was at 02:30 PM ----------

Ohhhkay.. i am a bit confused now..

when I am login as a normal user, e.g 'oracle' and execute 'ulimit -a', i see the memory is 32768 Kb. But when i view the /etc/security/limits file, 'oracle' user has the following limits set:


Code:
oracle:
        fsize = -1
        data = -1
        stack = -1
        core = -1
        rss = -1

If the limits are set to '-1', why is the 'memory' in ulimit not unlimited when i run 'ulimit -a' when i'm login as 'oracle' user?

currently i'm running some test on our test server first before making the changes to the production server.
# 12  
Old 05-30-2011
new ulimits only become active if you logout/login again to the box as this user.
If you have oracle running, this would include a restart of oracle

apart from this - you are setting only soft limits which may or may not be limited by your hard limits - so if you really want unlimited memory than you need to amend your hard limits as well - so you may want to have a setting like the below in your /etc/security/limits:
Code:
rss = -1
rss_hard = -1

Regards
zxmaus
# 13  
Old 05-30-2011
There is a file "/etc/security/limits" which steers all the ulimits. It holds all the limits in the form of stanzas. There is a "default"-stanza which values will be used if no specific value is assigned for a user.

You can change the settings via the "chuser" command (for another user) or the "ulimit" command (from within the respective user account) or even directly (as root) using a text editor.

For more information about /etc/security/limits refer to the man page accessible via man limits.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

LAMP Sever

How do I install a LAMP server on a new installation of Debian 9 using the lalest versions of AMP? Here is what I have. Corrections please. MYSQL apt-get install mysql-server mysql-client You can verify the MySQL server status using command: systemctl status mysql ------- PHP7... (0 Replies)
Discussion started by: Meow613
0 Replies

2. Red Hat

Adding Additional Capacity with megacli

I'm trying to add 6 more hard drives to my RAID array, none of the drives are foreign, they won't be replacing any drives either. I just need to add them to the RAID array. I can't seem to get them added, what am I missing? ---------- Post updated 08-03-12 at 12:28 PM ---------- Previous... (0 Replies)
Discussion started by: eccentricson
0 Replies

3. Shell Programming and Scripting

Adding an additional blank field to a file

Hi, I have the following file, I'd like to add an additional blank field to this file This is a tab delimited file, I have tried the same thing on excel, but looking for a unix solution. Here is my input: Country Postal Admin4 StreetBaseName StreetType HUN 2243 Kóka Dózsa György ... (3 Replies)
Discussion started by: ramky79
3 Replies

4. Shell Programming and Scripting

Adding additional characters while preserving original text

Hi Forum. I'm struggling on this relatively easy request to add additional 4 0's to an existing text in a file (whenever I see the pattern -# where # represents any number) using sed command while preserving the rest of the text in the files. Original Text: $DBConnection_EDW=SAS2EDW... (5 Replies)
Discussion started by: pchang
5 Replies

5. Shell Programming and Scripting

Adding additional column at the end

I have a file like below. The separator between reconds is ">" Each record consists of 2 numbers separated by a space. I want to write an awk script that copies the second number and puts it in the third column. :rolleyes: > 10 0 13 5.92346 16 10.3106 19 13.9672 22 16.9838 25... (5 Replies)
Discussion started by: kristinu
5 Replies

6. Red Hat

red hat Linux 5.0 is detecting 3gb ram but physical ram is 16gb

Hi, On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

7. UNIX for Advanced & Expert Users

adding additional drive to sco the is xenix

I am taking an old xenix drive and installing it in a recent SCO Build Server. I have gone through the process of running mkdev hd twice since the drive is a SCSI then proceed to run mkdev fs and when I attempt to add one of the shown partitions I get the following: fsck: cannot determine... (1 Reply)
Discussion started by: justenglabs
1 Replies

8. UNIX for Dummies Questions & Answers

Adding an additional harddrive in solaris 9

Hello, I have a system which a new harddrive was installed for additional space. I now need to mount the drive and transfer data from /home to the new drive with a mount point named /home. How do I go about doing this? Thanks in advance. (5 Replies)
Discussion started by: GLJ@USC
5 Replies
Login or Register to Ask a Question