- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Out of Memory error while compiling on HP-UX B...
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
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
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
тАО03-07-2011 02:35 AM
тАО03-07-2011 02:35 AM
Out of Memory error while compiling on HP-UX B.11.00
While compiling my c++ application on B.11.00, I am getting following error:
Error 6355: Exact position unknown; near ["Files.cpp", line 1244]. # [line 0 Files::FileList()] Out of memory.
Check kernel maxdsiz parameter and swap space configured. (6355)
Files::FileList() is the newly added function and I am getting above error if i add this function to my file.
The file has around 1400 lines (after adding new functions)
output of kmtune for maxdsiz value:
#kmtune | grep maxdsiz
maxdsiz 0x040000000
maxdsiz_64bit 0x0000000040000000
Can anybody help me in resolving this?
-Mrunal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 02:53 AM
тАО03-07-2011 02:53 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
>The file has around 1400 lines
How many lines if you count include files? Compile with "-E -.i" and count lines in the .i file.
>maxdsiz 0x40000000
>Can anybody help me in resolving this?
You are at 1 Gb, nothing can be done except split up the source or drop the opt level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 03:22 AM
тАО03-07-2011 03:22 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
# aCC -V
aCC: HP ANSI C++ B3910B A.03.45
around 1950 lines in total..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 04:07 AM
тАО03-07-2011 04:07 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
This is very old. The last version was A.03.55, 2004
>around 1950 lines in total.
That seems pretty small. What opt level? And do you have enough swapspace when you were compiling?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 04:10 AM
тАО03-07-2011 04:10 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 18920 505368 4% 0 - 1 /dev/vg00/lvol2
reserve - 29140 -29140
memory 179088 134272 44816 75%
i tried with 01 - 04, nothing worked for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 04:17 AM
тАО03-07-2011 04:17 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
>I tried with 01 - 04, nothing worked for me
You could try the default +O0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 04:26 AM
тАО03-07-2011 04:26 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 512 18 494 4% 0 - 1 /dev/vg00/lvol2
reserve - 28 -28
memory 175 131 44 75%
total 687 177 510 26% - 0 -
With default also, its throwing the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 04:33 AM
тАО03-07-2011 04:33 AM
Re: Out of Memory error while compiling on HP-UX B.11.00
You are likely out of swap while compiling.
You can check by adding at least 1 Gb of swap.
Or monitor the ctcom process in top and see how much memory it is using when it aborts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 09:31 PM
тАО03-07-2011 09:31 PM
Re: Out of Memory error while compiling on HP-UX B.11.00
pts/0 12560 root 232 20 75040K 58656K run 0:14 94.43 49.82 ctcom.pa20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 10:06 PM
тАО03-07-2011 10:06 PM
Re: Out of Memory error while compiling on HP-UX B.11.00
This looks like you are out of swap. Unless the compiler tried to get 1 Gb at the very end.