ãã¡ãã§ç¶ãããã¨æãã¾ãã ã¨ãããããCentOS5ãCentOS6ã®å ±ç㨠cpanmã§ã®Image::Magick ã®åãæ±ããImagerããã¾ãã¡ç¾ããå¦çããã¦ãããªãããããç®ä¸ã®ç®æ¨ã§ãã
ãã¡ãã§ç¶ãããã¨æãã¾ãã ã¨ãããããCentOS5ãCentOS6ã®å ±ç㨠cpanmã§ã®Image::Magick ã®åãæ±ããImagerããã¾ãã¡ç¾ããå¦çããã¦ãããªãããããç®ä¸ã®ç®æ¨ã§ãã
ps VSZ ããã»ã¹ã®ä»®æ³ã¡ã¢ãªãµã¤ãºï¼kbytesåä½ï¼ RSS ããã»ã¹ã使ç¨ãã¦ããç©çï¼ã¹ã¯ããããã¦ããªãï¼ã¡ã¢ãªãµã¤ãºï¼kbytesåä½ï¼ ãµã³ãã« httpd ã®ä½¿ç¨éã調ã¹ã $ ps aux |grep USER && ps aux |grep httpd |grep -v grep USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 30486 0.0 0.5 15208 5292 ? Ss Mar02 0:00 /usr/local/apache2/bin/httpd -k start root 30487 0.0 0.0 4152 744 ? S Mar02 0:00 /usr/local/apache2/bin/rotatelogs /var/log/httpd/error_log.%Y%m%d
Apacheã®1ããã»ã¹ãæ¶è²»ããã¡ã¢ãªã確èªã #ps alx|grep httpd FãUIDãPIDãPPIDãPRIãNIãVSZãRSSãWCHANãSTATãTTYãTIMEãCOMMAND 5ã48ã32222ã32212ã21ã0ã39112ã3872ã374588ãSã?ã0:00ã/usr/sbin/httpd ã»ã»ã» RSSãå®éã«ä½¿ç¨ããã¦ããã¡ã¢ãªéã§ããã®å ´åã3872KB使ããã¦ããã¨è¨ããã¨ã 256ããã»ã¹ã ã¨ã3872KB*256=968MBã®ã¡ã¢ãªãæ¶è²»ããã¨ããè¨ç®ã 空ãã¡ã¢ãªã¯ããã¤ãã£ããã¨ããã¨ãfreeã®çµæã«ã138112KB(134MB)ã¨æ¸ããã¦ããããLinuxã§ã¯ãbufferã¨cacheã«ã¤ãã¦ã¯å¿ è¦ã«å¿ãã¦åãåºãã¦ä½¿ç¨ã§ããï¼ã¨è¨ã£ã¦ããå°ãæ®ãã¦ãããªãã¨å¿çãä½ä¸ããã®ã§ãå ¨ã¦ã¯ä½¿ããªããï¼ã®ã§ãbuffers:1440
ã¸ããããªãããã ã®ãã³ã³ãã®ããã ã ãã³ã³ããä»æ¥ãæã¡å ´ã§ã¬ã³ããªã¤ã¤ã 楽ããçãã¦ããããã®åå¿é²ããã°ãã¬ãã¼ã¼ã£ã£ï¼ï¼2005å¹´7æãã絶è³ãæ´æ°ãä¸ï¼ ããã®è¨äºã®æè¦æé ï¼ ç´ 9 åã Apacheã®åææ¥ç¶æ°ï¼MaxClientsï¼ãã©ã®ããã«è¨å®ããã®ãããã®ã調ã¹ãã Apacheã®ããã»ã¹æ°ãå¶éããããã®ãã£ã¬ã¯ãã£ãããMaxClientsãã§ããã®ãã£ã¬ã¯ãã£ãã«ã¯ãåæã«æ¥ç¶ã§ããã¯ã©ã¤ã¢ã³ãï¼å³å¯ã«ã¯ã»ãã·ã§ã³ï¼ã®æ°ãæå®ããªããã°ãªããªãã âã¾ãã¯Apacheããã¥ã¡ã³ãã確èªããã Apacheã®ããã¥ã¡ã³ãã§ã¯ã以ä¸ã®ããã«å®ç¾©ããã¦ããã MaxClients ãã£ã¬ã¯ãã£ã 説æ: ãªã¯ã¨ã¹ãã«å¿çããããã«ä½æãããåããã»ã¹ã®æ大åæ° æ§æ: MaxClients number ããã©ã«ã: 詳細ã¯ä½¿ç¨æ³ãã覧ä¸ããã ã³ã³ããã¹ã:
Apache + mod_perl ã®å ´åãhttpd.conf ã§ããããã¨æ°ãã¤ããã¹ãç¹ãããã®ã§ãããã¾ã¨ãã¦ã¿ã¾ãããã¡ãªã¿ã«æ¬ãµã¼ãã®è¨å®å¤ã¯ã ãµã¼ãã¹ããã¯ã Pentium 4 2.8GHz HTåä½ ï¼ RAM 2GByte ãªç°å¢ã§ãAmazon Search ãå°ãã¡ã¢ãªã¯ mod_perl åä½ã§ 1 httpd ããã 10ã40MByte ç¨åº¦ããµã¼ãã©ã¤ãã©ãªãããæ¡ä»¶ä¸ã§ã¡ã¢ãªã¼ãªã¼ã¯ããã®ã§ãæ大㧠httpd 㯠100Mbyte ç¨åº¦ã¾ã§è¥å¤§ã ã¨ããæ¡ä»¶ä¸ã§ KeepAlive Off Timeout 60 MinSpareServers 10 MaxSpareServers 10 StartServers 10 MaxClients 50 MaxRequestsPerChild 50 ã¨ããè¨å®å¤ã«ãªã£ã¦ãã¾ããåãã©ã¡ã¼ã¿ã®å¤ã®æå³ã説æãã¾ã
CentOS5.5ã«ä»å±ã®httpd(Apache)ãããã©ã«ãè¨å®ã®httpd.confã§èµ·åããå ´åãã·ã¹ãã å ¨ä½ã®æ¶è²»ã¡ã¢ãªã¯750MBã»ã©ã«ãªã(RunLevel:3,Bluetooh,sendmailãã¼ã¢ã³ãªã©ã¯åã£ã¦ããï¼ãããã§httpdããã»ã¹ã®ä¸ã¤ãããã®æ¶è²»éãæ¸ããããªãã¨ãCentOS VMã«å²ãå½ã¦ãã¡ã¢ãªã512MBã§æ¸ã¾ãããã 使ããªã追å Modulesãåãåèã«ãããµã¤ã ãApacheãã¢ã¸ã¥ã¼ã«ã®åé¤ã«ããã¡ã¢ãªãç¯ç´ãã â (ã»âã»)ã¤ã¤!!Memoããã©ã«ãï¼ã§æå¹ã«ãªã£ã¦ããmodulesãã³ã¡ã³ãã¢ã¦ããã LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so Load
ãµã¼ãã§ãhttpdã¨PostgreSQLã稼åããã¦ããããã®ã§ãããããããã®ããã»ã¹ãã©ã®ç¨åº¦ã¡ã¢ãªã使ç¨ãã¦ããã®ã調ã¹ãå¿ è¦ãã§ã¦ãããããã¡ãã£ã¨èª¿ã¹ã¾ããã以ä¸ã¯ãã®æã®ã¡ã¢ã§ãã psã³ãã³ã Linuxã§ããã»ã¹ã®æ å ±ã調ã¹ãã®ã§ããã°ããã¯ãpsã³ãã³ãã ããã¨ãããã¨ã§ãã®ã³ãã³ããä¸å¿ã«èª¿ã¹ã¾ãããå°ãããã£ãã¨ããã以ä¸ã®ãã¼ã¸ãè¦ã¤ãããã¨ãã§ãã¾ããããã¡ãã®ãã¼ã¸ã§ç§ã®ããããäºã¯å ¨ã¦è¨è¼ããã¦ãã¾ãããã»ãã¨æè¬ã§ãã clmemo@aka: Linux ã§ããã»ã¹ã®ã¡ã¢ãªã¼ä½¿ç¨éãã½ã¼ã表示ãã clmemo@aka: Linux ã§ããã»ã¹ãã¨ã®ã¡ã¢ãªã¼ä½¿ç¨éã調ã¹ã clmemo@aka: ps + grep ã® Tips psã³ãã³ãã®è©³ç´°åºåãªãã·ã§ã³"u"ã¨"l" psã³ãã³ãã§ããã»ã¹ã®è©³ç´°æ å ±ãåºåãããã¨æã£ãå ´åã"u"ãããã¯"l"ã®
ç¾å¨éç¨ä¸ã®Webãµã¼ãã¼ã§ãããã²ã¨ã¤Webãµã¤ããéç¨ããã ããã§ã¯ãWebãµã¼ãã¼Apacheã®ãã¼ãã£ã«ãã¹ãæ©è½ã使ç¨ãã¦ã以ä¸ã«ç¤ºãæ¡ä»¶ã§ï¼ã¤ã®Webãµã¤ããéç¨ã§ããããã«ããã ã»ã¡ã¤ã³Webãµã¤ãã¯http://centossrv.com/ ã»è¿½å ããWebãµã¤ãã¯http://virtual.com/ ã»ã¡ã¤ã³Webãµã¤ãã®ããã¥ã¡ã³ãã«ã¼ãã¯/var/www/html/centossrv.com ã»è¿½å ããWebãµã¤ãã®ããã¥ã¡ã³ãã«ã¼ãã¯/var/www/html/virtual.com ã»ã¡ã¤ã³Webãµã¤ãã¸ã®ã¢ã¯ã»ã¹ãã°ã¯/var/log/httpd/access_logã/var/log/httpd/error_logã«è¨é²ãã ã»è¿½å ããWebãµã¤ãã¸ã®ã¢ã¯ã»ã¹ãã°ã¯/var/log/httpd/virtual.com-access_logã/var/lo
AWSã®ç¡æå©ç¨æ ã®ã¢ã«ã¦ã³ãä½æã®æç¶ãã®æ¹æ³ã§ãã ã¢ã«ã¦ã³ãä½æããæ¥ã¯ã 2020å¹´08æ10æ¥ ã§ãã Amazon AWS ç¡æå©ç¨æ ã«ã¤ãã¦ã®æ¦è¦ã§ãã AWS ç¡æå©ç¨æ äºåæºå ç»é²ã«ã¯ä»¥ä¸ã®æºåãå¿ è¦ã§ãã ã¯ã¬ã¸ããã«ã¼ãã¾ãã¯ããããã«ã¼ãï¼ç¡æå©ç¨...>
ã¯ã©ã¤ã¢ã³ããµã¤ãä¸ã§ã®ã¤ã³ã¿ã©ã¯ã·ã§ã³ãè¤éãªè¦è¦å¹æãéåæéä¿¡ã¯ã¦ã§ã2.0ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦å ±éã®æ©è½ã§ããJavaScriptãå¿ è¦ã¨ãããããã®æ©è½ã¯ãææ¸ãã«ããã³ã¼ãã£ã³ã°ã¯åä»ã§ãããã°ã«æéãããããã¨ã¯ããããã¾ãã幸ãã«ãã¦ãsymfonyã¯ãã«ãã®å®å ¨ãªã»ãããä¼´ããã³ãã¬ã¼ãå é¨ã®JavaScriptã®å¤ãã®å ±éé¨åãèªååãã¾ããä¸è¡ã®JavaScriptã®ã³ã¼ããç¡ãã¦ãå¤ãã®ã¯ã©ã¤ã¢ã³ããµã¤ãã®æ¯ãèããå®ç¾ã§ãã¾ããéçºè ã¯å®ç¾ãããå¹æã ãã«éä¸ãã¦ããã°ãããsymfonyãè¤éãªæ§æã¨äºææ§åé¡ãå¦çãã¾ãã ãã®ç« ã§ã¯ã¯ã©ã¤ã¢ã³ããµã¤ãã®ã¹ã¯ãªããã£ã³ã°ãåæ»ã«ããããã«symfonyã«ãã£ã¦æä¾ããããã¼ã«ã«ã¤ãã¦èª¬æãã¾ã: åºæ¬çãªJavaScriptãã«ãã¯ãDOM(Document Object Model)è¦ç´ ãæ´æ°ããããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}