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 -
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
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.
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:
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.
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:
Regards
zxmaus
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.
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)
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)
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)
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)
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)
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)
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)