linuxÏÂstack size¶ÔÊý¾Ý¿âÁ¬½ÓµÄÓ°Ïì
һ̨16GÄÚ´æ16ºËcpuµÄ·þÎñÆ÷ÉÏͬʱÔËÐÐÁËmysqlºÍMongodb£¬×î½ü·¢ÏÖÁ¬½ÓmysqlƵ·±³öÏÖ¡°Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent b¡±£¬Ö®Ç°Ð´¹ýһƪ´¦Àí´ËÎÊÌâµÄÎÄÕÂÊÇÓÉÓÚ×î´óÁ¬½ÓÊýµ¼Ö£ºhttp://it300.com/article-15274.html£¬
ÏÖ·ÖÎö·¢ÏÖ£¬Óû§Á¬½ÓÊý¡¢mysql×î´óÁ¬½ÓÊýµÈ¶¼Õý³££¬µ«ÄÚ´æ³Ô½ô¡£
mongodbµ±Ç°Á¬½ÓÊý£º500×óÓÒ
mysqlµ±Ç°Á¬½ÓÊý£º1000×óÓÒ
ÓÉÓÚÿ¸öÁ¬½ÓÐèҪʹÓÃ10M£¨stack sizeĬÈÏΪ10240£©µÄÄڴ棬Õâµ¼ÖÂÏ൱´óµÄÄڴ濪Ïú£¬ÒѾ15G+µÄÄڴ棬µ¼ÖÂÁ¬½Ó±»¾Ü¾ø¡£
´¦Àí·½·¨ÊÇ£¬Ê×ÏÈͨ¹ýÓÅ»¯Á¬½Ó³Ø£¬½«Á¬½ÓÊý¿ØÖÆÔÚÁË800¸ö×óÓÒ£¬È»ºóͨ¹ýÐÞ¸ÄÄں˵Ästack sizeÖµ£¬´ÓĬÈϵÄ10MÐ޸ĵ½5M£¬Ê¹Á¬½ÓÕ¼ÓõÄÄÚ´æ´ó´ó¼õÉÙ¡£
ulimit -a ĬÈϵÄstack size (kbytes, -s) 10240
ÐÞ¸Ä
ulimit -s 5120
vi /etc/security/limits.conf
* soft stack 5120
* hard stack 5120
Ð޸ĺó£¬ÎÊÌâµÃÒÔÐÞ¸´¡£Èç¹û»¹ÊÇÓУ¬Ç뽫stack size¸ÄΪ¸üСֵ¼´¿É¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ