Devel::NYTProf 㯠Perl5 ã®ä¸çã§ãã£ã¨ã人æ°ããããããã¡ã¤ã©ã§ããã表示ãç¾éºã§ããããã¹ããããã¨ã®å¦çé度ãç°¡åã«ãããã®ã§ã¨ã¦ã便å©ã ã ãã㪠Devel::NYTProf ã§ããããStarlet/Starman ã®ãããªããªãã©ã¼ã¯å¼ã®ãµã¼ãã¼ã§ãããã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã¨ãã¿ããããå ´åã®æ¹æ³è«ã¨ãã¦ãããããããè³æãã¿ããããªãã£ãã®ã§ããã«è¨ããã®ã§ããã ç°å¢å¤æ° NYTPROF ãè¨å®ãã Devel::NYTProf ã¯ç°å¢å¤æ°ã§æåãå¤ããããã plack ã¨ãã¿ããããå ´åã«ã¯ã以ä¸ã®ããã«ããã¨ããã NYTPROF=sigexit=int:savesrc=0:start=no sigexit=int é常ãDevel::NYTProf 㯠END { } ãããã¯ã§ãã¼ã¿ã®ãã¡ã¤ãã©ã¤ãºå¦çããããªãã®ã ããSIGNAL ã«ãã£
ç®ç ããã³ããHTTPãªã¯ã¨ã¹ããåãã¦ãããã¯ã¨ã³ãã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«reverse proxyãããããªæ§æã«ããã¦ãæå®ç§æ°ä»¥å ã«ä½ãããã®ã¬ã¹ãã³ã¹ãè¿ãããã 200ãè¿ããªãå ´åã¯ãå¦çãæã¡åã£ã¦500ãè¿ãããã èæ¯ ããã³ãã§ApacheãNginxãreverse proxyã¨ãã¦ä½¿ã£ã¦ããå ´åãããã¯ã¨ã³ããç¡å¿çã«ãªã£ã¦ãã¾ãã¨ãã¯ã©ã¤ã¢ã³ãã«ã¬ã¹ãã³ã¹ãè¿ãã®ã¯ããã©ã«ãã§æ°åãæ°ç¾ç§å¾(Apacheã®Timeoutã®ããã©ã«ãã¯300ç§ãNginxã®proxy_read_timeoutã®ããã©ã«ãã¯60ç§)ã«ãªã£ã¦ãã¾ãã¾ãã é常ã®Webãµã¼ãã¹ã§ã¯ãã®ãªã¼ãã¼ã®ã¿ã¤ã ã¢ã¦ãã§ãããã®ããããã¾ããããæ°ç§ä»¥å ã«(ã¨ã©ã¼ã§ãããã®ã§)ã¬ã¹ãã³ã¹ãè¿ããã¨ãæ±ããããç°å¢ãåå¨ãã¾ãã(æè¿ãç¹ã«å¤ãã®ã§ã¯ãªãã§ãããã:P) ãã¡ããããã¯ã¨ã³ãã
Powerful, fast and configurable preforking HTTP server. Inspired by Ruby's Unicorn web server. Supports HTTP/1.1 and has lots of configuration options. Based on Catalyst::Engine::HTTP::Prefork by Andy Grundman Ported to Plack by Tatsuhiko Miyagawa Uses Net::Server::PreFork Supports HTTP/1.1 Pipelined requests Chunked request/response Keep-Alives Graceful restart with HUP (No shutdown with QUIT yet
éçºã¡ã¢ãã®3ã§ããä»å㯠Perl ã®ãã¯ãªãã ä½å¹´ãåã«ä½ã£ãã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ããéãã¦ã¿ããé»æ´å²ãªã³ã¼ããåºã¦ãã¦æ鬱ãªæ°åã«ãªãããããªçµé¨ããã¾ããããç§ã¯ããã¾ãããã£ã¨ãããªç¾å®ããç®ãèãã¦çãã¦ãã¾ããã ãã¦ãå æ¥ Perl + CGI ã§æ¸ã㦠Apache::Registry ã§é«éåãã¦ãããå®è¡ç°å¢ã Apache ã«ççãã CGIã¢ããªã±ã¼ã·ã§ã³ãçºè¦ãã¾ããããããã£ãä¸ããä½ãç´ãããæ°æã¡ããã£ã¨å ªãã¦ãããã Plack åãããã¨ãªãã©ã¼ã ãã¦ããã¨ãã¾ãããããã®éç¨ã以ä¸è¨ãã¾ããåçããã©ã¢ã»ã¢ãã¿ã¼! ・・・ã¨ãã¯æå¾ ãããå°éãªå¤æ´ãç©ã¿éãã¦ããã®ãã³ãã§ãã æ¹é ãããªãã³ã¼ããããããæ¸ãæãã¦ããã¨ããããã¯ã試è¡é¯èª¤ã®ããããç°å¢ã«ç§»è¡ããã¦ãããªãããªãã©ã¼ã ãé²ãã¾ããé åãã§ãããçµæçã«ãã®å¾ã®éç¨ã楽
packageãã¨ã®ã¡ã¢ãªä½¿ç¨éã¨ãªã¯ã¨ã¹ããå¦çããåå¾ã®å¢åã確èªã§ããPlack::Middlewareãä½ãã¾ããã æéãçµã¤ã¨ã¶ãã¶ã太ãããã»ã¹ãããã¨ãã«ãç¯äººç¹å®ã®å©ãã«ãªãã¨æãã¾ãã https://github.com/hirose31/Plack-Middleware-MemoryUsage è¦ãB::TerseSizeB::Size2::Terse, Devel::Symdumpã§ãã æ°ãã(5.10以éï¼)ã®Perlã§B::TerseSize (B::Size)ãã¨ã©ã¼ã«ãªã£ã¦ã¤ã³ã¹ãã¼ã«ã§ããªãã¨ãã¯ã https://github.com/gfx/p5-B-Size-patched ã®ãå ¥ãã¦ãã ããã https://metacpan.org/module/B::Size2 ãå ¥ãã¦ãã ããã 使ãæ¹ã¯ã use Plack::Builder; bui
Plackä¸ã§PHP(php-cgi)ãåããã¢ã¸ã¥ã¼ã«ãPlack::App::PHPCGIã¨ä»»æã®CGIãåãããPlack::App::CGIBinã使ã£ã¦Apacheãã·ã§Nagiosãã¤ã³ã¹ãã¼ã«ããæ¹æ³ ã¾ããphp-cgiãã¤ã³ã¹ãã¼ã«ãããCentOSã®å ´åãphp(53)?-cliã¨ããããã±ã¼ã¸ãããã®ã§ããã使ãã¾ã $ sudo yum install php53-cli #centos5ãcentos6ã ã¨php-cli 次ã«nagiosãåããã¦ã¼ã¶ãä½æãã¾ã $ sudo /usr/sbin/adduser nagios nagiosæ¬ä½ã¨pluginããã¦ã³ãã¼ããã¦ããã¾ãããã®éã«Apacheã®è¨å®ã¯ã¤ã³ã¹ãã¼ã«ãã¾ãã $ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagio
Superglue interface between perl web application frameworks and web servers, just like Perl is the duct tape of the internet. PSGI is an interface between Perl web applications and web servers, and Plack is a Perl module and toolkit that contains PSGI middleware, helpers and adapters to web servers. PSGI and Plack are inspired by Python's WSGI and Ruby's Rack. Documentation PSGI specification Freq
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}