Re: malloc()/brk() failing with lots of mem. and swap space ?
Posted in 1996
Atiqullah Hashmi wrote:
>
> We are running Sol2.4 on a Sun 670. The applic. uses informix.
> At one point during execution, the applic. is failing in malloc().
> Although there is not sign of mem. shortage. Below are the relevant
> outputs of unix tools to determine mem/swap spaces etc.
> > informix configuration
> ----------------------
> BUFFERS 40000 # Maximum number of shared buffers *man
> SHMBASE 0xa000000 # Shared memory base address *man
> SHMVIRTSIZE 50000 # initial virtual shared memory segment size *
> SHMADD 8192 # Size of new shared memory segments (K) *man
> SHMTOTAL 160000 # Total shared memory (Kbytes). 0=>unlim (Change
> d from 250000) **man
Try setting SHMTOTAL to 0, which allows unlimited growth. If the problem
goes away, then your limit is too low for your usage.
Always use SHMTOTAL=0 unless you have heavy memory usage from other
applications on the same box or you have memory problems in other
applications.
Hope this helps,
--
Mark.
+-------------------------------------------------------------------------+
|Mark D. Stock - The West Solutions Group http://www.west.co.za |
| The Informix FAQ is at http://www.iiug.org |
|mailto:marks@west.co.za +------------------------------------------------+
|Tel: +27 11 803 2151 |If it doesn't work... force it! |
|Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! |
|Cell: +27 83 250 2325 |Well, that's how I code anyway! |
+------------------------+------------------------------------------------+