Skip to contentSkip to conversation

Question about program run out of memory

DISCUSSION 梁晨 3 participants 3 messages Aug 27, 2008 – Aug 29, 2008

lore
Share & tools
lore

梁晨

author
#0 lore raw

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

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

Quoted 8 lines · 梁晨

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!

Quoted 7 lines
      ___________________________________________________________

雅虎邮箱,您的终生邮箱!
http://cn.mail.yahoo.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to 梁晨

Sorry I can't pronounce or reproduce your name;

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

Quoted 12 lines · 梁晨

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 15 lines
Yuri Csapo
Academic Computing & Networking
Colorado School of Mines
CT-256
Phone:  (303) 273-3503
Fax:      (303) 273-3475
Email:   [email protected]

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