Connecting Tech Pros Worldwide Help | Site Map

how to increase heap size for a process

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 05:49 AM
nrhayyal
Guest
 
Posts: n/a
Default how to increase heap size for a process

hi all,
i am working on C++ on AIX machine.
i am running one of my module which is built using 10+ user built
libraries.
i am getting St9bad_alloc exception.
i came to know that this exception is thrown because the heap is
exhausted.
when i checked while running the program , i found that the program
uses 128 MB of heap after which it waits , then it throws this
exception.
my RAM size is 16GB with 4 processors running.
but my module is unable to access more than 128MB.
what i feel is that the OS (in this case AIX) will assign some amount
of heap for a process by default( in my case it is assigning 128MB).
My question is how to increase heap size for my process.
my modules works completely fine on SOLARIS.
but when ported to AIX, it gives me this exception and sometimes it
coredumps.

please help me on how to increase the heap size.
thanks in advance.

nagaraj hayyal.


  #2  
Old July 23rd, 2005, 05:49 AM
John Carson
Guest
 
Posts: n/a
Default Re: how to increase heap size for a process

"nrhayyal" <nagaraj_hayyal@satyam.com> wrote in message
news:1120401648.991027.316130@f14g2000cwb.googlegr oups.com[color=blue]
> hi all,
> i am working on C++ on AIX machine.
> i am running one of my module which is built using 10+ user built
> libraries.
> i am getting St9bad_alloc exception.
> i came to know that this exception is thrown because the heap is
> exhausted.
> when i checked while running the program , i found that the program
> uses 128 MB of heap after which it waits , then it throws this
> exception.
> my RAM size is 16GB with 4 processors running.
> but my module is unable to access more than 128MB.
> what i feel is that the OS (in this case AIX) will assign some amount
> of heap for a process by default( in my case it is assigning 128MB).
> My question is how to increase heap size for my process.
> my modules works completely fine on SOLARIS.
> but when ported to AIX, it gives me this exception and sometimes it
> coredumps.
>
> please help me on how to increase the heap size.
> thanks in advance.
>
> nagaraj hayyal.[/color]

This is not a C++ language issue. Try

comp.unix.aix


--
John Carson
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.