- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ulimit (out of memory prblm)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:18 AM
тАО01-09-2002 04:18 AM
ulimit (out of memory prblm)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:27 AM
тАО01-09-2002 04:27 AM
Re: ulimit (out of memory prblm)
The minimum, maximum, and default ulimit values are based on certain
kernel parameters.
For the Korn shell (ksh), ulimit only affects the filesize limit
which defaults to 4194304, and this is the ksh value for unlimited.
For the POSIX shell (sh), there are several variables that can be set
with ulimit. The 'ulimit -a' command lists the variables that can be
set for the posix shell.
Note: See the sh-posix(1) man page. There are soft and hard
limits for these variables.
Soft Limit:
-----------
$ ulimit -aS
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536 max determined by maxdsiz
stack(kbytes) 8192 max determined by maxssiz
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60 max determined by maxfiles
Hard Limit:
-----------
$ ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 1024 max determined by maxfiles_lim
The C shell (csh) has similar variables. These variables are set by
the csh limit command.
Note: See the csh man page.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:33 AM
тАО01-09-2002 04:33 AM
Re: ulimit (out of memory prblm)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:36 AM
тАО01-09-2002 04:36 AM
Re: ulimit (out of memory prblm)
Knowing the specific error you received would be helpful. As already noted, 'maxdsiz' and 'maxssiz' are two very important kernel parameter fences for consumption of overall memory by any process. Swapspace may also be an issue if an application is "out-of-memory". Please provide the specific error (or number) you received and the output from:
# swapinfo -ta
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:40 AM
тАО01-09-2002 04:40 AM
Re: ulimit (out of memory prblm)
Please install the latest shell patches for your O/S. ksh csh posix-sh
There are some differences there
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:48 AM
тАО01-09-2002 04:48 AM
Re: ulimit (out of memory prblm)
2)The explanation of the error is
I have one scrpt which starts my weblogic server.Now in that script there is parameter to define java command line options top start memory and max memeory with which the weblogic server shud run.Now when i set both these params to 256 mb then the servers comes up and when i put it 512 mb it throws a error ...out of memory.
3)Is there any file in HP like /etc/security/limits in AIX which sets the limits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 04:48 AM
тАО01-09-2002 04:48 AM
Re: ulimit (out of memory prblm)
Out of memory can mean many different things. To start, use the POSIX shell and type ulimit -aS to determine the size of the allowed data area. If it says 65536, then the default kernel fence for large programs is still set to 65 megs and the kernel must be changed.
Another memory limitation is the shared memory area and this is often the error seen for 32bit applications. 32bit applications are bound to the shared data area...1 Gb by default, with some 'MAGIC', they can address up to 1.75Gb, even 2.75Gb, but this area is shared by many other pieces of the system, things like memory mapped files, shared libraries and shared memory areas used by other programs. Once the system gets busy, this area can become fragmented and no free space exists that is large enough for the program's request.
Read the white papers about memory and program management in /usr/share/dov, specifically, mem_mgt.txt and proc_mgt.txt. And get a copy of the shminfo program from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
The weblogic program sounds like the memory it needs is not shared, so the kernel parameter is maxdsiz and should be increased to about 900 megs to avoid future problems.
You did not mention the HP-UX version. 10.20 cannot use all of the 4Gb...just 3.75Gb, while 64bit HP-UX version 11.0 can address terabytes of RAM. However, applications must be written to accomodate the extended memory availability.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:08 AM
тАО01-09-2002 05:08 AM
Re: ulimit (out of memory prblm)
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 65536
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024
Does it say anything ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:17 AM
тАО01-09-2002 05:17 AM
Re: ulimit (out of memory prblm)
sysdef | grep maxdsiz
and see if the number of pages is 16384 (which is 65 megs where page=4k), or if maxdsiz is less than 100000 (100k) which is less than 500 megs. Or you can just run SAM, select kernel parameters and maxdsiz, and change maxdsiz to 235000 (235k) which is about 900 megs. Then after the system reboots, you should be able to run weblogic with a 512 option.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:20 AM
тАО01-09-2002 05:20 AM
Re: ulimit (out of memory prblm)
Ttest the Hard Limit as I showed in my first response.ulimit -aH
It looks to me as thought you should increase maxdsiz and maxssiz by at least 50% and probably a lot more.
maxdsiz Max Data Segment Size (bytes)
maxssiz Max Stack Segment Size (bytes)
use size -d and man size to see what your program has available.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:21 AM
тАО01-09-2002 05:21 AM
Re: ulimit (out of memory prblm)
maxdsiz 262144 - 0-655360 Pages -
maxdsiz_64bit 966367641 - 256-1048576 Pages
here is the o/p .Plus i just ran glance it says memory usage as 90 %. ?????? is this the problem.Plus is there any file ion HP (like /etc/limits) which limits the use of resources...are the resources to users are limited only by kernel params ????//
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:24 AM
тАО01-09-2002 05:24 AM
Re: ulimit (out of memory prblm)
Also, I have maxssiz set to 0x800000 which is 8388608, and maxtsiz to 0x4000000 which is 67108864.
Also, WHAT OS are you running? (10.20, 11.00, 11i)??
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:26 AM
тАО01-09-2002 05:26 AM
Re: ulimit (out of memory prblm)
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 65536
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2048
This is my o/p How to use size -d ...what does it do..how do i find what my program has avalable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:29 AM
тАО01-09-2002 05:29 AM
Re: ulimit (out of memory prblm)
Other than weblogic on your server, what other kind of apps are used?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:34 AM
тАО01-09-2002 05:34 AM
Re: ulimit (out of memory prblm)
maxssiz 0X04000000
maxssiz_64bit 0X04D00000
# grep maxtsiz system
maxtsiz 0X40000000
I use 11.0 and as of now only weblogic is runing.No other apps are running.I use iplanet server also.
I have 4 GB RAM nd its showing 95% memory used in glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:43 AM
тАО01-09-2002 05:43 AM
Re: ulimit (out of memory prblm)
How large is the processes data segment size growing before it crashes? You can monitor this with top or glance. Is it possible to get a tusc trace of the process as it crashes?
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:47 AM
тАО01-09-2002 05:47 AM
Re: ulimit (out of memory prblm)
>Plus i just ran glance it says memory usage as 90 %. ?????? is this the problem.Plus is there any file ion HP (like /etc/limits) which limits the use of resources...are the resources to users are limited only by kernel params ?<
Memory usage in Glance is not meaningful until you break it out: part of the memory usage is the buffer cache, and it's probably way too large. Change the kernel parameter dbc_max_pct to 15 rather than 50. While it is supposed to be dynamic, it takes some coaching to make it shrink.
In Glance, type the letter ? to see all the 1-char commands, then type m to look at the memory summary. The buffer cache should be about 300-600 megs or less.
To answer the last question, no, there is no /etc/default file to limit RAM other than the kernel.
Also, maxssiz rarely needs changing. At 8 megs, a poorly written program might need help by increasing it but for a 32 bit program, it will be limited to 80 megs on 10.20 and 200 megs on 11.0. However, 'normal' programs will complain about lack of stack memory rather than just memory.
Note also that you should look at swapinfo -tm to see if you have enough virtual memory space.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:47 AM
тАО01-09-2002 05:47 AM
Re: ulimit (out of memory prblm)
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 172 852 17% 0 - 1 /dev/vg00/lvol2
dev 3072 0 3072 0% 0 - 2 /dev/vg00/lvol9
reserve - 1870 -1870
memory 3141 2318 823 74%
total 7237 4360 2877 60% - 0 -
here is the o/p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:52 AM
тАО01-09-2002 05:52 AM
Re: ulimit (out of memory prblm)
i did that by buffer cache is 2 GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:54 AM
тАО01-09-2002 05:54 AM
Re: ulimit (out of memory prblm)
A question.
What application gives the problem and how is it built.
Does it go wrong quickly or after a while.
Watch it run in glance and see if it grows.
You may have some form of memory leak.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 05:56 AM
тАО01-09-2002 05:56 AM
Re: ulimit (out of memory prblm)
One of your responses indicates its a java program generating the error. If thats the case the max_thread_proc and nkthread parameters could also be the problem. See http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/configuration.html for more information.
It would help immensely if you could post the exact text of the error you are receiving.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 06:05 AM
тАО01-09-2002 06:05 AM
Re: ulimit (out of memory prblm)
--------------------------------------------------------------------------------
CPU Usage (sec) : 0.08 Log Reads : 0 Rem Log Rds/Wts: 0/ 0
User/Nice/RT CPU: 0.07 Log Writes: 0 Rem Phy Rds/Wts: 0/ 0
System CPU : 0.00 Phy Reads : 0
Interrupt CPU : 0.00 Phy Writes: 0 Total RSS/VSS :563.2mb/583.5mb
Cont Switch CPU : 0.00 FS Reads : 0 Traps / Vfaults: 4/ 0
Scheduler : HPUX FS Writes : 0 Faults Mem/Disk: 0/ 0
Priority : 154 VM Reads : 0 Deactivations : 0
Nice Value : 24 VM Writes : 0 Forks & Vforks : 0
Dispatches : 27 Sys Reads : 0 Signals Recd : 0
Forced CSwitch : 2 Sys Writes: 0 Mesg Sent/Recd : 1/ 0
VoluntaryCSwitch: 20 Raw Reads : 0 Other Log Rd/Wt: 1/ 1
Running CPU : 0 Raw Writes: 0 Other Phy Rd/Wt: 0/ 0
CPU Switches : 0 Bytes Xfer: 0kb Proc Start Time
C - cum/interval toggle % - pct/absolute togglen 9 18:45:30Page 1 of 1
These are the details about the process taken from glance.which is running webogic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 06:10 AM
тАО01-09-2002 06:10 AM
Re: ulimit (out of memory prblm)
Another possibility is that weblogic is using shared memory which has a different set of limitations. The weblogic application must document what it needs in shared memory, memory mapped files, semaphores, etc as these are application-dependent and cannot be guessed.
If weblogic uses shared memory, start with:
# ipcs -bmop
and see how big the segments are for the weblogic program. If they are fairly large (10's to 100's of megs), then you probably have shared memeory fragmentation due to weblogic being a 32bit program. To see the details, get a copy of shminfo:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
abd read the white paper on memory windows in /usr/share/doc. If you don't have the paper, you are not up to date on patches for 11.0.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 06:10 AM
тАО01-09-2002 06:10 AM
Re: ulimit (out of memory prblm)
The WEBLOGIC server goes down saying "OUT OF MEMORY"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2002 06:13 AM
тАО01-09-2002 06:13 AM
Re: ulimit (out of memory prblm)
U mean to say that i should deifine
dbc_max_pct=15 in /stand/system which is not deifines at present and that is the reason it is taking its default value of 50.
thnks