linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about program run out of memory
@ 2008-08-27  1:16 梁晨
  2008-08-27  2:37 ` Richard Nairn
  2008-08-29 14:03 ` Yuri Csapo
  0 siblings, 2 replies; 4+ messages in thread
From: 梁晨 @ 2008-08-27  1:16 UTC (permalink / raw)
  To: linux-admin

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 reboot it. Can I do some restriction of the max memory per process? Thanks!



      ___________________________________________________________ 
 ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about program run out of memory
  2008-08-27  1:16 Question about program run out of memory 梁晨
@ 2008-08-27  2:37 ` Richard Nairn
  2008-08-29 14:03 ` Yuri Csapo
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Nairn @ 2008-08-27  2:37 UTC (permalink / raw)
  To: 梁晨, linux-admin

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

On Tue, 26 Aug 2008 19:16:35 -0600, 梁晨 <lcpcsky@yahoo.com.cn> 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  
> reboot it. Can I do some restriction of the max memory per process?  
> Thanks!
>
>
>
>       ___________________________________________________________
>  雅虎邮箱,您的终生邮箱!
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about program run out of memory
@ 2008-08-27  4:55 梁晨
  0 siblings, 0 replies; 4+ messages in thread
From: 梁晨 @ 2008-08-27  4:55 UTC (permalink / raw)
  To: Richard Nairn, linux-admin

Thank you, I tried "ulimit -Sv 1024000" successful, finally I wrote this 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  
> memory size, core dump size, open file descriptors...

>>On Tue, 26 Aug 2008 19:16:35 -0600, Áº³¿ <lcpcsky@yahoo.com.cn> 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  
>> reboot it. Can I do some restriction of the max memory per process?  
>> Thanks!


      ___________________________________________________________ 
 ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about program run out of memory
  2008-08-27  1:16 Question about program run out of memory 梁晨
  2008-08-27  2:37 ` Richard Nairn
@ 2008-08-29 14:03 ` Yuri Csapo
  1 sibling, 0 replies; 4+ messages in thread
From: Yuri Csapo @ 2008-08-29 14:03 UTC (permalink / raw)
  To: 梁晨; +Cc: linux-admin

[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]

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 reboot it. Can I do some restriction of the max memory per process? Thanks!
> 
> 
> 
>       ___________________________________________________________ 
>  雅虎邮箱,您的终生邮箱! 
> 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

-- 
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
===========================================
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2840 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-29 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27  1:16 Question about program run out of memory 梁晨
2008-08-27  2:37 ` Richard Nairn
2008-08-29 14:03 ` Yuri Csapo
  -- strict thread matches above, loose matches on Subject: below --
2008-08-27  4:55 梁晨

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).