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

java ×¢Êӹ淶

  ×ª×Ô£ºhttp://gyhgc.javaeye.com/blog/225039
  ÔÚÈí¼þ¿ª·¢µÄ¹ý³ÌÖÐ×ÜÊÇÇ¿µ÷×¢Ê͵Ĺ淶£¬µ«ÊÇûÓÐÒ»¸ö¾ßÌåµÄ±ê×¼½øÐÐ˵Ã÷£¬Í¨³£¶¼ÊÇÔÚ´úÂë±àд¹æ·¶Öмòµ¥µÄÃèÊö¼¸¾ä£¬²»ÄÜ×÷Ϊһ¸ö´úÂë×¢Êͼì²éµÄ±ê×¼ºÍÒÀ¾Ý£¬×öʲô¶¼ÒªÓÐÒ»¸öÒÀ¾ÝÂð:),ÏÖÔÚÎÒÌØÕûÀíÁËÒ»¸ö¡¶JavaµÄ×¢Ê͹淶¡·£¬ÄÚÈÝÀ´×ÔÍøÂç¡¢Êé¼®ºÍ×Ô¼ºµÄʵ¼Ê»ýÀÛ¡£
JAVA×¢Ê͹淶
°æ±¾/״̬ ×÷Õß °æ±¾ÈÕÆÚ
1.0 ghc 2008-07-02
Ò»¡¢±³¾°
1¡¢µ±ÎÒÃǵÚÒ»´Î½Ó´¥Ä³¶Î´úÂ룬µ«ÓÖ±»ÒªÇóÔÚ¼«¶ÌµÄʱ¼äÄÚÓÐЧµØ·ÖÎöÕâ¶Î´úÂ룬ÎÒÃÇÐèҪʲôÑùµÄ×¢ÊÍÐÅÏ¢£¿
2¡¢ÔõôÑù±ÜÃâÎÒÃǵÄ×¢ÊÍÈß³¤¶øÇÒÁèÂÒ²»¿°ÄØ£¿
3¡¢ÔÚ¶àÈËЭͬ¿ª·¢¡¢Î¬»¤µÄ½ñÌ죬ÎÒÃÇÐèÒªÔõôÑùµÄ×¢ÊÍÀ´±£Ö¤¸ßÖÊ¡¢¸ß½»µÄ½øÐпª·¢ºÍά»¤¹¤×÷ÄØ£¿
¶þ¡¢ÒâÒå
³ÌÐòÖеÄ×¢ÊÍÊdzÌÐòÉè¼ÆÕßÓë³ÌÐòÔĶÁÕßÖ®¼äͨÐŵÄÖØÒªÊֶΡ£Ó¦ÓÃ×¢Ê͹淶¶ÔÓÚÈí¼þ±¾ÉíºÍÈí¼þ¿ª·¢ÈËÔ±¶øÑÔÓÈΪÖØÒª¡£²¢ÇÒÔÚÁ÷ÐеÄÃô½Ý¿ª·¢Ë¼ÏëÖÐÒѾ­Ìá³öÁ˽«×¢ÊÍתΪ´úÂëµÄ¸ÅÄî¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ¾¡¿ÉÄܵļõÉÙÒ»¸öÈí¼þµÄά»¤³É±¾ , ²¢ÇÒ¼¸ºõûÓÐÈκÎÒ»¸öÈí¼þ£¬ÔÚÆäÕû¸öÉúÃüÖÜÆÚÖУ¬¾ùÓÉ×î³õµÄ¿ª·¢ÈËÔ±À´Î¬»¤¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ¸ÄÉÆÈí¼þµÄ¿É¶ÁÐÔ£¬¿ÉÒÔÈÿª·¢ÈËÔ±¾¡¿ì¶ø³¹µ×µØÀí½âеĴúÂë¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ×î´óÏ޶ȵÄÌá¸ßÍŶӿª·¢µÄºÏ×÷ЧÂÊ¡£³¤ÆڵĹ淶ÐÔ±àÂ뻹¿ÉÒÔÈÿª·¢ÈËÔ±Ñø³ÉÁ¼ºÃµÄ±àÂëÏ°¹ß£¬ÉõÖÁ¶ÍÁ¶³ö¸ü¼ÓÑϽ÷µÄ˼άÄÜÁ¦¡£
Èý¡¢×¢Ê͵ÄÔ­Ôò
1¡¢ ×¢ÊÍÐÎʽͳһ
ÔÚÕû¸öÓ¦ÓóÌÐòÖУ¬Ê¹ÓþßÓÐÒ»ÖµıêµãºÍ½á¹¹µÄÑùʽÀ´¹¹Ôì×¢ÊÍ¡£Èç¹ûÔÚÆäËûÏîÄ¿×é·¢ÏÖËûÃǵÄ×¢Ê͹淶ÓëÕâ·ÝÎĵµ²»Í¬£¬°´ÕÕËûÃǵĹ淶д´úÂ룬²»ÒªÊÔͼÔڼȳɵĹ淶ϵͳÖÐÒýÈëеĹ淶¡£
2¡¢ ×¢Ê͵ļò½à
ÄÚÈÝÒª¼òµ¥¡¢Ã÷ÁË¡¢º¬Òå׼ȷ£¬·ÀÖ¹×¢Ê͵ĶàÒåÐÔ£¬´íÎóµÄ×¢ÊͲ»µ«ÎÞÒæ·´¶øÓк¦¡£
3¡¢ ×¢Ê͵ÄÒ»ÖÂÐÔ
ÔÚд´úÂë֮ǰ»òÕß±ßд´úÂë±ßдעÊÍ£¬ÒòΪÒÔºóºÜ¿ÉÄÜûÓÐʱ¼äÀ´ÕâÑù×ö¡£ÁíÍ⣬Èç¹ûÓлú»á¸´²éÒѱàдµÄ´úÂ룬ÔÚ½ñÌì¿´À´ºÜÃ÷ÏԵĶ«Î÷ÁùÖÜÒÔºó»òÐí¾Í²»Ã÷ÏÔÁË¡£Í¨³£ÃèÊöÐÔ×¢ÊÍÏÈÓÚ´úÂë´´½¨£¬½âÊÍÐÔ×¢ÊÍÔÚ¿ª·¢¹ý³ÌÖд´½¨£¬ÌáʾÐÔ×¢ÊÍÔÚ´úÂëÍê³ÉÖ®ºó´´½¨¡£Ð޸ĴúÂëµÄͬʱÐÞ¸ÄÏàÓ¦µÄ×¢ÊÍ£¬ÒÔ±£Ö¤´úÂëÓë×¢Ê͵Äͬ²½¡£
4¡¢ ×¢Ê͵ÄλÖÃ
±£Ö¤×¢ÊÍÓëÆäÃèÊöµÄ´úÂëÏàÁÚ£¬¼´×¢Ê͵ľͽüÔ­Ôò¡£¶Ô´úÂëµÄ×¢ÊÍÓ¦·ÅÔÚÆäÉÏ·½ÏàÁÚ»òÓÒ·½µÄλÖ㬲»¿É·ÅÔÚÏ·½¡£±ÜÃâÔÚ´úÂëÐеÄĩβÌí¼Ó×¢ÊÍ£»ÐÐβעÊÍʹ´úÂë¸üÄÑÔĶÁ¡£²»¹ýÔÚÅú×¢±äÁ¿ÉùÃ÷ʱ£¬ÐÐβעÊÍÊǺÏÊʵģ»ÔÚÕâÖÖÇé¿öÏ£¬½«ËùÓÐÐÐβעÊÍÒª¶ÔÆë¡£


Ïà¹ØÎĵµ£º

Èý¸öÔ£¬¹¥ÏÂÁËjava£¡£¡£¡Ê¡ÁË14000Ôª

2009Äê10ÔÂ25ÈÕ£¬µÃÒ»Êéµê200ÔªÂòÁËËı¾Êéj2se»ù´¡½Ì³Ì£¬j2eeÓ¦Óÿª·¢Ïê½â£¬javaÏîÄ¿¿ª·¢È«³Ìʵ¼£¬java web¿ª·¢ËÙѧ±¦µäÊ鿪ʼ
2010Äê2ÔÂ3ÈÕ£¬µÚÒ»Ì×»ùÓÚú¿ó°²È«¹ÜÀíµÄÈí¼þÄ£Ðͼ°Æ䲿·Ö´úÂë³ÉÐÍ
Èý¸öÔ£¬ÕâÊÇÒ»³¡Ø¬ÃΣ¬²»¹ýÕâÈý¸öÔ£¬ÓÖÊÇÒ»ÖÖ¾ªÏ²ºÍ¿ìÀÖ
´ÓÊý¾ÝÀàÐÍ£¬Óï·¨½á¹¹£¬jdk ¹ýÑ­»·£¬´³Êý×飬¼¯ºÏ£¬µü´ú£¬¶ÓÁУ ......

java mail: set

Problem: email thread is hanging at socket read
Today we found a email problem in production, all of the mail threads (3 threads) are hanging/sitting/blocking at same point
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
......

Java×ÔѧС½á——1

ÔÚѧУ×ÔѧJava£¬ÓõÄÊÇ¡¶Java³ÌÐòÉè¼Æ——Ò»ÖÖ¿ìѧ¿ÆµÄ·½·¨¡·¡£¿´ÁËÒÔºó·¢ÏÖ£¬°¡£¬ÕæÊÇÒ»±¾ºÃÊé¡£ËüÕæÊÇ¿çѧ¿Æ°¡£¬Êýѧ£¬ÎïÀí£¬ÉúÎïÎÊÌⶼ¿ÉÒÔÓÃJava×÷Ϊ¹¤¾ßÀ´Ñо¿¡£³ýÁ˸÷ÖÖÊýѧÎÊÌ⣬±ÈÈçËã·¨£¬µÝ¹é£¬Ëü»¹Ñо¿ÁËÎïÀíÎÊÌâ¡£ËüÉæ¼°Á˸÷ÖÖÎÊÌ⣬Éø͸ÀíÂÛ£¬»ùÒò×éѧ£¬Mandelbort¼¯µÈ¡£×îÅ£µÄÊÇ£¬ËüÓÃÆõԼʽµÄÉè¼ ......

java Á¬½Ó×Ö·û´®

1. MySQL(http://www.mysql.com)mm.mysql-2.0.2-bin.jar ;
Class.forName( "org.gjt.mm.mysql.Driver" );
cn = DriverManager.getConnection( "jdbc:mysql://MyDbComputerNameOrIP:3306/myDatabaseName", sUsr, sPwd );
2. PostgreSQL(http://www.de.postgresql.org)pgjdbc2.jar ;
Class.forName( "org.postgresql. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ