2004/05/09 15:35:03     1966   
   ±ä±Þ Áú¹®: PHP ¸Þ¸ð¸® ¹®Á¦¿¡ ´ëÇÑ...... [1]
Á¦°¡ ¾²´Â ¼­¹ö°¡ Pegasus °í, PHP MEMORY LIMIT °¡ 10 M Àä.

Memory °¡ 9 Mega »ç¿ë ÁßÀÌ¸é °æ°í ¸Þ½ÃÁö ¶ç¿ì·Á°í Çϴµ¥,
PHP °¡ ±¸¼®±â ¼±»ç½Ã´ë¿¡ ¸¸µé¾îÁø 4.30 ¹öÀüÀ̰ŵç¿ä.
Á¦¹ß 4.3.2 ¹öÀüÀ¸·Î ¾÷±×·¹ÀÌµå ½ÃÄÑ ÁÖ¼¼¿ä.

¸Þ¸ð¸® ¶§¹®¿¡ ¾î¼´Ù 10 ¸Þ°¡ ³ÑÀ¸¸é, Never Never °¡ µÇ´Ï±î..
4.30 ¹öÀü¿¡¼± ¾Æ·¡ ÇÔ¼ö¸¦ ¾µ ¼ö°¡ ¾ø±º¿ä.

4.3.2 ¹öÀüÀ¸·Î ¾÷±×·¹ÀÌµå ¾È ÇØÁֽøé... °èÁ¤ ¸¸·áÀÏ ¾ó¸¶ ¾È ³²¾Ò´Âµ¥,
Àç ½Åû ¾È ÇÒ°Å¿¡¿©.... ¿ïÆ®¶ó ¿Õ »ßÁü ¤Ñ¤Ñ^

Á¦°¡ ¸¸µç ¸ð PHP À¯Æ¿ÀÌ ´Ù¸¥ ȸ»çÀÇ ¼­¹ö¿¡¼­ ¾È ÀÛµ¿Çؼ­ ¿å ¸Ô¾ú´ø ÀÏÀÌ ÀÖ¾ú´Âµ¥,
±× ȸ»ç ¼­¹öÀÇ ¹öÀüÀÌ PHP3 ¿´´Ù´Â.... ¤Ð¤Ð
21 ¼¼±â¿¡ ±¸¼®±â ½Ã´ë ¹öÀüÀ» »ç¿ëÇϸ鼭... 췟 ¤Ñ¤Ñ^
Àß ¸øÇÑ °Íµµ ¾ø´Âµ¥, ¿å ¸Ô¾ú´Ù´Â...... °¡½¿¾ÆÇ ÀÏÀÌ ÀÖ¾úµå·¨¾î¿©... ¤Ð¤Ð


½ºÅ©¸³Æ®°¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ÃÖ´ë ¸Þ¸ð¸® ¾çÀ» ¹ÙÀÌÆ®·Î ¼³Á¤ÇÕ´Ï´Ù. ¾û¸ÁÀÎ ½ºÅ©¸³Æ®°¡ ¼­¹öÀÇ ¸¹Àº ¸Þ¸ð¸®¸¦ Â÷ÁöÇÏ´Â °ÍÀ» ¹æÁöÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ Áö½ÃÀÚ¸¦ »ç¿ëÇϱâ À§Çؼ­´Â, ÄÄÆÄÀϽÿ¡ È°¼ºÈ­ÇÏ¿©¾ß ÇÕ´Ï´Ù. Áï, ¼³Á¤ ¶óÀο¡ ´ÙÀ½À» Æ÷ÇÔµÇ¾ß ÇÕ´Ï´Ù: --enable-memory-limit. ¸Þ¸ð¸® Á¦ÇÑÀ» ÇÏÁö ¾ÊÀ¸·Á¸é -1·Î ¼³Á¤ÇϽʽÿÀ.

PHP 4.3.2ºÎÅÍ, memory_limit¸¦ È°¼ºÈ­ ÇßÀ»¶§, PHP ÇÔ¼ö memory_get_usage()°¡ »ç¿ë °¡´ÉÇÕ´Ï´Ù.


memory_get_usage
(PHP 4 >= 4.3.2, PHP 5)

memory_get_usage -- Returns the amount of memory allocated to PHP
Description
int memory_get_usage ( void )


Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.

memory_get_usage() will only be defined if your PHP is compiled with the --enable-memory-limit configuration option.

¿¹ 1. A memory_get_usage() example

<?php
// This is only an example, the numbers below will
// differ depending on your system

echo memory_get_usage() . "\n"; // 36640

$a = str_repeat("Hello", 4242);

echo memory_get_usage() . "\n"; // 57960

unset($a);

echo memory_get_usage() . "\n"; // 36744

?>  


writer ip : 221.165.123.224 , modify 221.165.123.224 , 2004/05/09 15:37:26    


211.111.3.65
2004/05/10 10:06:31
À¥¼­¹öÀÇ PHP ÀÇ ¾÷±×·¹À̵å½Ã, PHPÀÇ Àç ÄÄÆÄÀÏÀÌ ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù. µû¶ó¼­ ¼­ºñ½º°¡ ÁߴܵǾî¾ß ÇÕ´Ï´Ù¸¸, À¥È£½ºÆà ¼­ºñ½º Ư¼º»ó °í°´´Ô²²¼­¸¸ »ç¿ëÇÏ´Â ¼­¹ö°¡ ¾Æ´Ï±â ¶§¹®¿¡ ¼­ºñ½º°¡ ÀÓÀÇ·Î ÁßÁöµÉ¼ö ¾ø½À´Ï´Ù. ^^;; ±×·¯³ª Á¶¸¸°£ °¢ À¥¼­¹ö¸¶´Ù PHP ÀÇ ¹öÀü ¾÷ÀÌ °èȹµÇ¾îÀÖÀ¸¹Ç·Î Á¶±Ý¸¸ ±â´Ù·ÁÁֽñ⠹ٶø´Ï´Ù. °¨»çÇÕ´Ï´Ù.

      

       

22645 ¿¬Àå°áÁ¦¿Ï·á~ [1] ÂøÇÑÆÄÀÌ 08/06 1
22644 ȨÆäÀÌÁö Á¢¼Ó ºÒ·® ¿Ö ÀÌ·±°¡¿ä? [3] ·ù±â¸¸ 08/06 3165
22643 °è¼ÓµÇ´Â Á¢¼ÓºÒ¾È [2] JH4u 08/06 3615
22642 ¼­ºñ½º º¯°æ ¹× ¿¬Àå ¹®ÀÇ [1] ¼Õ¼ö°æ 08/06 1
22641 °èÁ¤¿¬Àå Áú¹®ÀÌ¿ä. [1] ¼Û¼ÒÁø 08/04 1
22640 °èÁ¤ ¿¬Àå ¹®Á¦ÀÔ´Ï´Ù. [1] KZero 08/04 1
22639 »èÁ¦µÈ °èÁ¤À» »ì¸®°í ½Í½À´Ï´Ù. [2] Á¤¿µÈ£ 08/04 2710
22638 °èÁ¤ ¿¬Àå¿¡ ´ëÇÏ¿© [5] Jericho 08/04 7
22637 Á¦·Îº¸µå °ü·Ã [1] ´Ù¿ï 08/04 2842
22636 µµ¸ÞÀÎ Ãß°¡ [1] ±è¼±Çü 08/04 2767
22635 ¾Õ¼­ °Ô½ÃÆÇ ÀÌÀü ¹®Àǵå·È´ø »ç¶÷ÀÔ´Ï´Ù. [4] ¹è¿µ¶õ 08/04 3
22634 °Ô½ÃÆÇ DB¹®Á¦ [1] ¸ñÁøÈ­ 08/03 2447
22633 °©ÀÛ½º·± Á¦·Îº¸µå ¾Ö·¯ [1] ¸ñÁøÈ­ 08/03 2849
22632 ¿¬Àå Áú¹® [1] ÄÞ¸¶ 08/03 1
22631 Àü¿¡ º¹±¸ÈÄ¿¡ ±ÛÀ»¾²¸é ¹øÈ£°¡ ¾Õ¿¡ -°¡ ºÙ¾î¼­... [2] Á¶Çö¹Î 08/02 3306
FIRST107114115116117118119120127LAST