Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.net µÄ¹¤×÷Ïß³ÌÓëÇëÇó¶ÓÁÐ

µ± ASP.NET ½ÓÊÕÕë¶ÔÒ³µÄÇëÇóʱ£¬Ëü´ÓÏ̳߳ØÖÐÌáÈ¡Ò»¸öÏ̲߳¢½«ÇëÇó·ÖÅä¸ø¸ÃÏ̡߳£
Ò»¸öÆÕͨµÄ£¨»òͬ²½µÄ£©Ò³ÔÚ¸ÃÇëÇóÆڼ䱣ÁôỊ̈߳¬´Ó¶ø·ÀÖ¹¸ÃÏß³ÌÓÃÓÚ´¦ÀíÆäËûÇëÇó¡£Èç¹ûÒ»¸öͬ²½ÇëÇó³ÉΪ I/O bound£¨ÀýÈ磬Èç¹ûËüµ÷ÓÃÒ»¸öÔ¶³Ì Web ·þÎñ»ò²éѯһ¸öÔ¶³ÌÊý¾Ý¿â£¬²¢µÈ´ýµ÷Ó÷µ»Ø£©£¬ÄÇô·ÖÅä¸ø¸ÃÇëÇóµÄÏß³ÌÔÚµ÷Ó÷µ»Ø֮ǰ´¦ÓÚ¹ÒÆð״̬¡£ ÕâÓ°ÏìÁË¿ÉÉìËõÐÔ£¬Ô­ÒòÊÇÏ̳߳صĿÉÓÃÏß³ÌÊÇÓÐÏ޵ġ£
Õâ¸öÊý×ÖµÄÉèÖÃÊÇÔÚ machine.config µÄ ÏÂÊö½ÚµãµÄ maxWorkerThreads ÊôÐÔ
<system.web>
 <processModel requestQueueLimit="num|Infinite" maxWorkerThreads="num"  />
system.web> 
maxWorkerThreads
°´ CPU ÅäÖÃÓÃÓÚ½ø³ÌµÄ¸¨ÖúÏ̵߳Ä×î´óÊýÄ¿¡£ÀýÈ磬Èç¹ûµ¥´¦ÀíÆ÷·þÎñÆ÷ÉϵĸÃֵΪ 25£¬ASP.NET ʹÓÃÔËÐÐʱ API ½«½ø³ÌÏÞÖÆÉèÖÃΪ 25¡£ÔÚË«´¦ÀíÆ÷·þÎñÆ÷ÉÏ£¬¸ÃÏÞÖÆÉèÖÃΪ 50¡£¸ÃÊôÐÔµÄÖµ±ØÐëµÈÓÚ»ò´óÓÚ httpRuntime ÅäÖýÚÖÐµÄ minFreeThread ÊôÐÔÉèÖᣠ¸ÃÊôÐԵķ¶Î§ÊÇ´Ó 5 µ½ 100¡£
ASP.netÇëÇó¶ÓÁÐÉÏÊöÉèÖÃÖУ¬»¹ÓÐÒ»¸ö¶ÓÁÐÉèÖã¬ÈçÏ£ºrequestQueueLimit Ö¸¶¨¶ÓÁÐÖÐÔÊÐíµÄÇëÇóÊý£¬³¬¹ý´ËÊýÄ¿ºó£¬ASP.NET ½«¿ªÊ¼ÏòÐÂÇëÇ󷵻ؓ503 - ·þÎñÆ÷̫æ”ÏûÏ¢¡£  ĬÈÏÇé¿öÏÂ,Õâ¸ö¿ÉÓ÷ÖÏß³ÌÊýΪ1000¡£ÏÂͼΪIIS6ºÍIIS7ÖÐÕâ¸ö²ÎÊýµÄÉèÖõط½¡£
IIS 7 µÄ¿ÉÓÃÏß³ÌÊýÉèÖÃ
IIS 6 µÄ¿ÉÓÃÏß³ÌÊýÉèÖÃ
Èç¹ûËùÓÐÇëÇó´¦ÀíÏß³ÌÈ«²¿×èÈûÒԵȴý I/O ²Ù×÷Íê³É£¬ÔòÆäËûÇëÇóÅÅÈë¶ÓÁеȴýÏß³ÌÊÍ·Å¡£
×îºÃµÄÇé¿öÊÇÍÌÍÂÁ¿¼õÉÙ£¬ÒòΪÇëÇóµÈ´ý½Ï³¤µÄʱ¼ä²ÅÄܵõ½´¦Àí¡£
×µÄÇé¿öÔòÊǸöÓÁÐÌîÂú£¬²¢ÇÒ ASP.NET Òò 503“Server Unavailable”´íÎóʹºóÐøÇëÇóʧ°Ü¡£
²Î¿¼×ÊÁÏ:
ÔÚ·þÎñÆ÷¶Ë Web ´úÂëÖÐʹÓÃÏ̺߳ÍÉú³ÉÒì²½´¦Àí³ÌÐò
http://msdn.microsoft.com/zh-cn/library/aa686076.aspx
ASP.NET 2.0 ÖеÄÒì²½Ò³ http://www.microsoft.com/china/msdn/library/webservices/asp.net/issuesWickedCodetoc.mspx
IIS 6.0 ¼Ü¹¹
http://blog.csdn.net/heaven_pl/archive/2008/02/19/2106572.aspx http://blog.csdn.net/heaven_pl/archive/2008/02/19/2106579.aspx
IIS 7.0 ¼Ü¹¹
http://blog.csdn.net/SKY_VID/archive/2008/03/04/2147732.aspx
Á˽âASP.NETµ×²ã¼Ü¹¹
http://blog.csdn.net/fanweiwei/archive/2007/04/10/1558912.aspx


Ïà¹ØÎĵµ£º

asp.netÁ´½ÓAccessÊý¾Ý¿â×Ö·û´®ÕýÈ··½·¨

ÔÚweb  configÖР ×÷ÈçÏÂÅäÖãº
<connectionStrings>
    <add name="ydycon" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=|DataDirectory|ydy.mdb" providerName="System.Data.OleDb"/>
 
  </connectionStrings>
ÔÚ.netÎļþÖÐÓ¦ÓÃÁ´½Ó ......

ASP.NET¹ý³Ì×ܽá

´óѧÉú»î£¬ºÜÄÑ˵£¬¸÷ÖÖÌå»áºÍ×Ì棬ÒòÈ˶øÒì
´óѧѧϰ£¬¸üÄÑ˵£¬¸÷Öֳɼ¨ºÍϹ»ì£¬¸÷ÓÐǧÇï
ºÜ¶àʱºò×ÜÊÇÔÚÏ룬ÕâЩÄêÀ´µ½µ×ѧµ½ÁËʲô£¬×÷Ϊһ¸ö´óѧÉú£¬±ÈÆðÄÇЩÉç»áÉϵĻì»ìµ½µ×ÓÐʲôÓÅÊÆ¡£Ã»Óд𰸣¬ÖÁÉÙÏÖÔÚûÓÐ
ºÜ¶àʱºò¶Ôѧϰ³äÂúÏ£Íû£¬µ«Äǽö½öÖ»ÊÇÍ£ÁôÔÚÄÔº£Öеļƻ®£¬¼¸ºõûÓйýʵÏÖ¡£
´óѧµÄ»ù´¡¿ÎºÜÖØÒª£¬ ......

OrcaleÓëAsp.netµÄ¶Ë¿Ú³åÍ»¡¾Ä§ÀÖÊÓƵ www.mldn.cn¡¿


Ò³ÃæµØÖ·ÊÇ:http://www.mldn.cn/articleview/2007-2-6/article_view_1400.htm
Web·þÎñµÄinetinfo.exeÓëOracleµÄApache.exe½ø³ÌËùÕ¼ÓõĶ˿ڶ¼°üÀ¨80¶Ë¿Ú¡£
Èç¹ûÓû§ÊÇÔÚ°²×°ÁËOracleÖ®ºó£¬ÔÙʹÓÃ.NET´´½¨ASP.NETÓ¦ÓóÌÐò³öÏÖÏÂÃæÇé¿öµÄ´íÎó£º
VS.NET¼ì²âµ½web·þÎñÆ÷ÔËÐеÄÊÇASP.NET 1.0°æ£¬Òª´´½¨»ò´ò¿ªµÄÓ¦ÓóÌÐò¿ÉÒ ......

ASP.NET MVCµÄÇëÇóÉúÃüÖÜÆÚ

ÉúÃüÖÜÆÚ²½Öè¸ÅÀÀ
µ±ÎÒÃǶÔASP.NET MVCÍøÕ¾·¢³öÒ»¸öÇëÇóµÄʱºò£¬»á·¢Éú5¸öÖ÷Òª²½Ö裺
²½Öè1£º´´½¨RouteTable
µ±ASP.NETÓ¦ÓóÌÐòµÚÒ»´ÎÆô¶¯µÄʱºò²Å»á·¢ÉúµÚÒ»²½¡£RouteTable°ÑURLÓ³Éäµ½Handler¡£
²½Öè2£ºUrlRoutingModuleÀ¹½ØÇëÇó
µÚ¶þ²½ÔÚÎÒÃÇ·¢ÆðÇëÇóµÄʱºò·¢Éú¡£UrlRoutingModuleÀ¹½ØÁËÿһ¸öÇëÇó²¢ÇÒ´´½¨ºÍÖ´ÐкÏÊ ......

asp.netÖлùÓÚFormÑéÖ¤µÄ½ÇÉ«ÊÚȨÑéÖ¤

ÒÔÏÂÀàÈÝΪתÔØ£¬µ«ÊDz»ÖªµÀÊÇʲôԭÒò£¬¾­±¾È˲âÊÔÕâ¸ö·½·¨ÓÐÒ»¸öbug£¬°´ÕÕÒÔÏÂÀàÈÝËùÉè¼ÆµÄ½ÇÉ«ÑéÖ¤²»Äܳɹ¦¡£Application_AuthorizeRequestʼþ¸ÄΪApplication_AuthenticateRequestʼþ²ÅÄÜʵÏÖ¡£
Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ