Question about program run out of memory

Question about program run out of memory

am 27.08.2008 03:16:35 von lcpcsky

hi,
I encountered such a problem when a program have some bug that it will =
ask for endless memory, until the system completely dead, I can only re=
boot it. Can I do some restriction of the max memory per process? Thank=
s!



___________________________________________________________= 20
ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊ Ï䣡=
=20
http://cn.mail.yahoo.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Question about program run out of memory

am 27.08.2008 04:37:19 von Richard Nairn

Check out ulimit. It controls a number of parameters such as maximum =20
memory size, core dump size, open file descriptors...

On Tue, 26 Aug 2008 19:16:35 -0600, 梁晨 om.cn> wrote:

> hi,
> I encountered such a problem when a program have some bug that it wil=
l =20
> ask for endless memory, until the system completely dead, I can only =
=20
> reboot it. Can I do some restriction of the max memory per process? =20
> Thanks!
>
>
>
> ___________________________________________________________
> é›…è™Žé‚®ç®±ï¼Œæ‚¨çš „ç=BB=
ˆç”Ÿé‚®ç®±ï¼=81
> http://cn.mail.yahoo.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Question about program run out of memory

am 27.08.2008 06:55:21 von lcpcsky

Thank you, I tried "ulimit -Sv 1024000" successful, finally I wrote thi=
s line "* hard as 1024000" into /etc/security/limits.conf, so it can be=
apply when system booting.


> Check out ulimit. It controls a number of parameters such as maximum =
=20
> memory size, core dump size, open file descriptors...

>>On Tue, 26 Aug 2008 19:16:35 -0600, Áº³¿ n> wrote:

>> hi,
>> I encountered such a problem when a program have some bug that it wi=
ll =20
>> ask for endless memory, until the system completely dead, I can only=
=20
>> reboot it. Can I do some restriction of the max memory per process? =
=20
>> Thanks!


___________________________________________________________= 20
ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊ Ï䣡=
=20
http://cn.mail.yahoo.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Question about program run out of memory

am 29.08.2008 16:03:17 von Yuri Csapo

This is a cryptographically signed message in MIME format.

--------------ms000000030109090006010103
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

Sorry I can't pronounce or reproduce your name;

Have a look at /etc/security/limits.conf if the system uses pam.

Áº³¿ wrote:
> hi,
> I encountered such a problem when a program have some bug that it will =
ask for endless memory, until the system completely dead, I can only rebo=
ot it. Can I do some restriction of the max memory per process? Thanks!
>=20
>=20
>=20
> ___________________________________________________________= 20
> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊ Ï䣡=
=20
> http://cn.mail.yahoo.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

--=20
Yuri Csapo
Academic Computing & Networking
Colorado School of Mines
CT-256
Phone: (303) 273-3503
Fax: (303) 273-3475
Email: ycsapo@mines.edu

Please use the following link to open a service request:
http://helpdesk.mines.edu
==================== =====3D=
==================
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster


--------------ms000000030109090006010103
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIH9zCC
AlYwggG/oAMCAQICEGGEG+8vIuZyO0EmnyFFyvgwDQYJKoZIhvcNAQEFBQAw YjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRo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BDb25zdWx0aW5n IChQdHkpIEx0
ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5n IENBAhBhhBvv
LyLmcjtBJp8hRcr4MIGHBgsqhkiG9w0BCRACCzF4oHYwYjELMAkGA1UEBhMC WkExJTAjBgNV
BAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1Ro YXd0ZSBQZXJz
b25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhBhhBvvLyLmcjtBJp8hRcr4MA0G CSqGSIb3DQEB
AQUABIGAaB1Co4T0pI/reyGYZqlljxADZeCKFWhE2Kxxwh1OFWjSUgP/+8Vy tgwCO34UQhQ+
HeCYodilJSHIGOsqR0mwUvBQFMSftFV6GVVt5zurro++aBP346xKI+oxAccg XsUTpFTM/Fmz
hbirzP12Fpz/B64ssl5o+3JLsvv/6xObkpYAAAAAAAA=
--------------ms000000030109090006010103--
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html