- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Out of memory error Hpux 11i
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
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
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
05-08-2007 08:24 AM
05-08-2007 08:24 AM
I have a 32 bit application running on an L2000 server with 16gb of memory, running Hpux 11i. The application is dying at 890mb of memory consumption. The vendor had me set the masxdsiz value to 2gb, it is set as below:
maxdsiz 0X80000000
After setting the larger value the application still crashes. They sent me a little test application as well that runs in a loop and takes 10mb of system memory on each iteration and it is also dying at 890mb.
How do I determine if I need to make any other kernel changes?
What tools can I used to nail this one down?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:36 AM
05-08-2007 08:36 AM
Re: Out of memory error Hpux 11i
Even though you have 16GB of RAM, a 32-bit program will only be able to use up to 4GB, if it is compiled correctly.
A read through the "HP-UX Memory Management Whitepaper" should explain things:
http://docs.hp.com/en/1218/mem_mgt.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:00 AM
05-08-2007 09:00 AM
Re: Out of memory error Hpux 11i
Without changing the application, you will be able to get another 60MiB or so by simply DECREASING maxssiz by 60MiB. The data segment and stack segment are allocated from the same 1GiB quadrant so the data segment is is implicitly reduced by maxssiz even if the run-time stack never approaches maxssiz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 03:21 PM
05-08-2007 03:21 PM
SolutionThere is absolutely no reason for any program to crash when it runs out of RAM -- that's just poor code. And any programmer writing old 32 bit code must be well aware of the severe limitations that these small programs have. I have attached a small program which requests RAM (malloc) until the current addressing model runs out of space. The program can request up to 3700 megs of RAM as a 32 bit program and unlimited amounts of RAM when recompiled as a 64 bit program.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2007 01:08 AM
05-09-2007 01:08 AM
Re: Out of memory error Hpux 11i
But that brings up the question of how to determine how they have compiled the code, this is vendor code and I am likely going to have to advise them on how to compile it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2007 01:17 AM
05-09-2007 01:17 AM
Re: Out of memory error Hpux 11i
I hope this code is free. I wouldn't pay a nickel for code that is supposed to run on HP-UX and I had to explain to the programmer how to handle memory. When an application is advertised as being compatible or runs on HP-UX, you would rightfully assume the code was tested on an HP-UX box running your version of HP-UX. If this vendor doesn't have such a platform, you might offer to help port the code and test it on one of your boxes -- for a substantial discount off the software price.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2007 02:46 AM
05-09-2007 02:46 AM
Re: Out of memory error Hpux 11i
for example, file myapp
if the display is something like "PA-RISC1.1 shared executable dynamically linked" then it is 32-bit PA-RISC code.
If you see something like "ELF-64 executable ..." then you have 64-bit code.
You can also execute chatr against the executable for more detailed infomation.
Man chatr for details.
In any event, woe be unto the vendor that I had to explain any of this to. In fact, his suggestion that you increase maxdsiz to 2GiB while apparently not knowing that because of his compiler/linker options you will still not exceed 1GiB is a big red flag.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2007 02:53 AM
05-09-2007 02:53 AM
Re: Out of memory error Hpux 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 03:05 AM
06-29-2007 03:05 AM
Re: Out of memory error Hpux 11i
I enabled the 3rd quadrant memory to be used by this process by "chatr" command but I dont find the process is consuming 2.85GB of memory which is supposed to be, when 3rdquad mem is enabled.
Why is it so?is it like this memory is not accesible to this process if this one is already allocated to some shared libraries or something like that?
Could some one please pur in your thouhgts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 12:55 PM
06-29-2007 12:55 PM
Re: Out of memory error Hpux 11i
The program must be rewritten to properly handle memory requests.
> I enabled the 3rd quadrant memory to be used by this process by "chatr" command but I dont find the process is consuming 2.85GB of memory which is supposed to be, when 3rdquad mem is enabled.
Did you see all the other steps (maxdsiz, ulimit, compile with EXEC_MAGIC). Here is a program that will ask for memory up to 3700 megs when compiled (32 bit mode) using the comments in the code.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 01:58 AM
07-17-2007 01:58 AM