2004/05/09 15:35:03     1967   
   ±ä±Þ Áú¹®: 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 ÀÇ ¹öÀü ¾÷ÀÌ °èȹµÇ¾îÀÖÀ¸¹Ç·Î Á¶±Ý¸¸ ±â´Ù·ÁÁֽñ⠹ٶø´Ï´Ù. °¨»çÇÕ´Ï´Ù.

      

       

>> ±ä±Þ Áú¹®: PHP ¸Þ¸ð¸® ¹®Á¦¿¡ ´ëÇÑ...... [1] 05/09 1967
20733 ¾Æ.. Àú ±×¸®°í Á˼ÛÇÕ´Ï´Ù¸¸.. [1] ±èÈ«°æ 05/08 3
20732 µµ¸ÞÀÎÁ¢¼ÓÀÌ ¾ÈµÇ¿ä. ¿µ¹®µµ¸ÞÀÎ, Çѱ۵µ¸ÞÀÎ µÑ... [2] ±èÈ«°æ 05/08 3
20731 [Áú¹®] Áú¹®À»;; [103] 05/08 2036
20730 ¸îÀÏ° ȨÀÌ ¾Ê¶á´Àµ¥... ¾î¶»°Ô µÈ°É±î¿ë..À̱Ã... [1] ±Ý¿ì¶ô 05/07 1401
20729 µµ¸ÞÀο¬Àå½ÅûÀ»Çߴµ¥¾ÆÁ÷µµÁ¢¼ÓÀ̾ȵǴµ¥¿è~ [1] ±èÈ¿»ó 05/07 1249
20728 µµ¸ÞÀÎ Á¢¼Ó ¾ÈµÇ´Âµ¥¿ä È®Àιٶø´Ï´Ù. [1] ¿ìµæ 05/07 1000
20727 °èÁ¤¾ÈÀÇ ÆÄÀÏÀ» ¸çÄ¥¸¸ À¯Áö½ÃÄÑÁֽǼö¾ø³ª¿ä.¤Ñ... [1] Ç»¾î¾Æ»ç¹Ì 05/06 1339
20726 Á¦·Îº¸µå ÃʱâÈ­ ºÎŹµå¸³´Ï´Ù. [1] ¹ÌÅ° 05/06 1
20725 Á¦·Îº¸µå¼³Ä¡¿ä~ [1] ¹ÌÅ° 05/06 2
20724 ¾È³çÇϼ¼¿ä ¿î¿µÀÚ´Ô Áú¹®ÀÌ¿ä^^; [1] ±è¹®¼± 05/06 1030
20723 ¿¬Àå/º¯°æ ¹®ÀÇ [1] ¿ÀºñÅ»1 05/06 1
20722 ¾È³çÇϼ¼¿ä^^ º£½ºÆ¼Áî ¿î¿µÀÚÀÔ´Ï´Ù. [1] ÃÖÀμº 05/06 2
20721 ÃʱâÈ­ ½ÃÄÑÁÖ¼¼¿ä.¤Ð_¤Ð [1] ¸¸µÎ 05/06 1156
20720 °èÁ¤ ÃʱâÈ­Á» ºÎŹµå¸³´Ï´Ù.^^ [1] Á¤Çöö 05/05 1
FIRST233240241242243244245246253LAST