Re: malloc()/brk() failing with lots of mem. and swap space ?
Posted in 1996
Topics: General Discussion
In article <56vrl0$17c@cnj.digex.net>, Atiqullah Hashmi <hashmi@cnj.digex.net> wrote: > >Hi, > >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. > >vmstat 1: >--------- > procs memory page disk faults cpu > r b w swap free re mf pi po fr de sr s1 s2 s3 s4 in sy cs us sy id > 0 0 0 479868 227784 0 33 1 0 0 0 0 0 0 1 13 308 273 163 8 3 89 > 0 0 0 407672 176224 0 10 0 0 0 0 0 0 2 20 0 143 100 73 0 2 97 > 0 0 0 407672 176224 0 0 0 0 0 0 0 0 0 0 0 21 107 78 0 0 100 > 0 0 0 407672 176224 0 8 0 0 0 0 0 0 0 0 0 147 100 73 2 0 98 > 0 0 0 407672 176224 0 1 0 0 0 0 0 0 0 0 0 115 114 72 5 0 95 > 0 0 0 407672 176224 0 0 0 0 0 0 0 0 0 0 0 28 106 83 0 2 98 > 0 0 0 407664 176216 0 0 0 0 0 0 0 0 0 0 0 45 137 133 0 11 89 > >swap -s: >-------- >total: 181416k bytes allocated + 142704k reserved = 324120k used, >407692k available > ........ >time() = 848515876 >write(5, " 1 3 : 5 1 : 1 6 R o u".., 82) = 82 >time() = 848515876 >write(5, " 1 3 : 5 1 : 1 6 R o u".., 85) = 85 > > I don't know about Informix...but do a "limit" command if you are running csh or a csh derivative.. It will most likely tell you that there is a soft/hard limit on the memory usage per process. This is usually a tunable parameter. Thanks Venki