- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Application Hangs in HP-UX B.11.11
Operating System - HP-UX
1754354
Members
4731
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-15-2006 10:44 PM
тАО11-15-2006 10:44 PM
Application Hangs in HP-UX B.11.11
Hi,
We are running a multithreaded application in HP-UX B.11.11 box. This application is initialy developed on linux box and ported to HP UNIX. also this application is complied using gcc 3.4.2 version. When the size of process increases to 1 gb(using top command) the application hangs and does not process any data. The increase in the memory could be a memory leak. As a temporary solution we had increase the values for maxdsize and maxtsiz parmeters. Can anybody tell me why my happlication hangs in this senario.
Thanks in advance.
We are running a multithreaded application in HP-UX B.11.11 box. This application is initialy developed on linux box and ported to HP UNIX. also this application is complied using gcc 3.4.2 version. When the size of process increases to 1 gb(using top command) the application hangs and does not process any data. The increase in the memory could be a memory leak. As a temporary solution we had increase the values for maxdsize and maxtsiz parmeters. Can anybody tell me why my happlication hangs in this senario.
Thanks in advance.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2006 03:50 AM
тАО11-16-2006 03:50 AM
Re: Application Hangs in HP-UX B.11.11
Well, no one can know for _sure_ without tracing the application [which is the job of your developers and all]... my assumption would be that you've compiled as 32-bit, using the default address space layout (1Gb for data+private dynamic objects+stack) and you've exhausted your private address space... and the application handles ENOMEM failures by either sleeping or just dropping work. Raising kernel tunables won't help any -- you can't grow beyond the quadrant boundaries for a 32-bit application.
Another possibility is that your application is consuming all the physical memory on the box -- and the "hang" you're perceiving is because vhand is paging it out or deactivating it to free up memory. It doesn't sound like you think the whole box has gone non-responsive... but you never know. You don't say how much RAM the box has and all.
The first thing I'd do is see if you *do* have a memory leak. Anything that simply gives the application more room to work would just be eaten by the leak if this is the case. (There are various tools to do this that your developers should be aware of already).
If your developers are adamant that the application just takes X Gb (where X is obviously > 1) to do the workload you're demanding of it, then you have a few options:
1) If the hardware and 11.11 installation support it ("getconf _SC_KERNEL_BITS" returns 64), you could recompile your application as 64-bit. This will give you terabytes to work in, making your only real limits maxdsiz_64bit [so check that value and set it appropriately... usually it's pretty reasonabe already] and your swap space. Since HP-UX (unlike Linux) reserves swap whenever virtual address space is grown, you *must* have sufficient swap to cover your application's memory needs [plus the rest of the system]. This can be mitigated by use of "pseudo-swap" -- which is a Kernel accounting trick that just considers memory to swap to itself, allowing the total virtual address space to be larger than device/FS swap. Check "swapinfo -atm" for your Total swap.
2) If you must stay 32-bit for whatever reason, consider changing your compilation model to EXEC_MAGIC, allowing your Text and Data to use the same 2Gb.. assuming your application doesn't have 1Gb of code + static data, that will give additional space for dynamic data.
3) Move to 11.23 on IPF and use MPAS (which is the closest to Linux you can get on HP-UX).
Another possibility is that your application is consuming all the physical memory on the box -- and the "hang" you're perceiving is because vhand is paging it out or deactivating it to free up memory. It doesn't sound like you think the whole box has gone non-responsive... but you never know. You don't say how much RAM the box has and all.
The first thing I'd do is see if you *do* have a memory leak. Anything that simply gives the application more room to work would just be eaten by the leak if this is the case. (There are various tools to do this that your developers should be aware of already).
If your developers are adamant that the application just takes X Gb (where X is obviously > 1) to do the workload you're demanding of it, then you have a few options:
1) If the hardware and 11.11 installation support it ("getconf _SC_KERNEL_BITS" returns 64), you could recompile your application as 64-bit. This will give you terabytes to work in, making your only real limits maxdsiz_64bit [so check that value and set it appropriately... usually it's pretty reasonabe already] and your swap space. Since HP-UX (unlike Linux) reserves swap whenever virtual address space is grown, you *must* have sufficient swap to cover your application's memory needs [plus the rest of the system]. This can be mitigated by use of "pseudo-swap" -- which is a Kernel accounting trick that just considers memory to swap to itself, allowing the total virtual address space to be larger than device/FS swap. Check "swapinfo -atm" for your Total swap.
2) If you must stay 32-bit for whatever reason, consider changing your compilation model to EXEC_MAGIC, allowing your Text and Data to use the same 2Gb.. assuming your application doesn't have 1Gb of code + static data, that will give additional space for dynamic data.
3) Move to 11.23 on IPF and use MPAS (which is the closest to Linux you can get on HP-UX).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2006 06:29 AM
тАО11-16-2006 06:29 AM
Re: Application Hangs in HP-UX B.11.11
Shalom,
The number one cause of application hang is bad code.
Do make sure your box is properly patched, this mimimizes the chance of the OS doing it.
I would suggest hanging a tusc trace on the process(s) that are causing trouble to track down what actually happens right before the hang.
SEP
The number one cause of application hang is bad code.
Do make sure your box is properly patched, this mimimizes the chance of the OS doing it.
I would suggest hanging a tusc trace on the process(s) that are causing trouble to track down what actually happens right before the hang.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2006 10:06 AM
тАО11-16-2006 10:06 AM
Re: Application Hangs in HP-UX B.11.11
>Steven: The number one cause of application hang is bad code.
Right, it could be a mutex deadlock.
Also, is it really a hang or a loop?
>I would suggest hanging a tusc trace
And getting stack traces on all threads:
(gdb) thread apply all bt
Right, it could be a mutex deadlock.
Also, is it really a hang or a loop?
>I would suggest hanging a tusc trace
And getting stack traces on all threads:
(gdb) thread apply all bt
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP