Subject: Re: Re: "Allowed memory size of 8388608 bytes exhausted" installing www/php4
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 03/04/2006 20:57:18
--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 04 2006 - 13:35, Steven M. Bellovin wrote:
> On Sat, 4 Mar 2006 19:09:28 +0100
> Joel CARNAT <joel@carnat.net> wrote:
>=20
> >
> > > >=20
> > > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried =
to
> > > > allocate 92160 bytes) in
>=20
> ....
>=20
> > I tried to change as much as possible (with ulimit and sysctl) but the
> > issue is still there :(
> >=20
> > Which value did you thought might solve my problem (I can't have
> > stacksize.* to change).
> >=20
> > # sysctl proc.curproc.rlimit
>=20
> > proc.curproc.rlimit.stacksize.soft =3D 8388608
> > proc.curproc.rlimit.stacksize.hard =3D 8388608
> >
>=20
> Given that the error message speaks of 8388608, as does stack size, I
> think I know which one needs changing...
>=20
well... in fact I saw that but couldn't change it ; so I thought I was
looking at the wrong one.

# sysctl -w proc.curproc.rlimit.stacksize.hard=3D16777216
proc.curproc.rlimit.stacksize.hard: 8388608 -> 16777216
# sysctl proc.curproc.rlimit.stacksize
proc.curproc.rlimit.stacksize.soft =3D 8388608
proc.curproc.rlimit.stacksize.hard =3D 8388608

# ulimit -s 16384
# ulimit -a
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         1048576
stack(kbytes)        8192
lockedmem(kbytes)    unlimited
memory(kbytes)       unlimited
nofiles(descriptors) 3404
processes            1044
sbsize(bytes)        unlimited

> As root, change the hard limit, then in that process or a child of it do
> the compilation.

--qMm9M+Fa2AknHoGS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (NetBSD)

iD8DBQFECfEe0/VH7L7F7Y4RArFkAJ9VsRzQVtvXY9kEiool6xZJZ7Lr7gCgjImA
8CNLKFhHDo+16qdkpsOcxYU=
=GWcD
-----END PGP SIGNATURE-----

--qMm9M+Fa2AknHoGS--