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

JDKÖаüº¬µÄ³£ÓÃJavaµ÷ÊÔ¹¤¾ß

1  JDK5.0°üÀ¨µÄµ÷ÊÔ¹¤¾ß
ÎÒÃÇÔÚÕâÀï¶ÔJDK5.0µÄµ÷ÊÔ¹¤¾ß×ö´óÖµĸÅÄîÐԵĽéÉÜ£¬È»ºóÏ£Íûͨ¹ý½éÉÜÎÒ×Ô¼ºÔÚʵ¼Ê¹¤×÷ÖÐʹÓÃÕâЩ¹¤¾ß½â¾öÎÊÌâµÄʵÀýÀ´Èôó¼Ò¶ÔÕâЩ¹¤¾ßÓиüÉîÈëµÄÁ˽⡣
 
¡¡JDK5.0ÀïÃæ¼ÓÈëÁËjstack, jconsole, jinfo, jmap, jdb, jstat, jps, ÏÂÃæ¶ÔÕâЩ¹¤¾ß×ö¼òµ¥½éÉÜ£º
¡¡jstack -- Èç¹ûjava³ÌÐò±ÀÀ£Éú³ÉcoreÎļþ£¬jstack¹¤¾ß¿ÉÒÔÓÃÀ´»ñµÃcoreÎļþµÄjava stackºÍnative stackµÄÐÅÏ¢£¬´Ó¶ø¿ÉÒÔÇáËɵØÖªµÀjava³ÌÐòÊÇÈçºÎ±ÀÀ£ºÍÔÚ³ÌÐòºÎ´¦·¢ÉúÎÊÌâ¡£ÁíÍ⣬jstack¹¤¾ß»¹¿ÉÒÔ¸½Êôµ½ÕýÔÚÔËÐеÄjava³ÌÐòÖУ¬¿´µ½µ±Ê±ÔËÐеÄjava³ÌÐòµÄjava stackºÍnative stackµÄÐÅÏ¢, Èç¹ûÏÖÔÚÔËÐеÄjava³ÌÐò³ÊÏÖhungµÄ״̬£¬jstackÊǷdz£ÓÐÓõġ£Ä¿Ç°Ö»ÓÐÔÚSolarisºÍLinuxµÄJDK°æ±¾ÀïÃæ²ÅÓС£
¡¡jconsole – jconsoleÊÇ»ùÓÚJava Management Extensions (JMX)µÄʵʱͼÐλ¯¼à²â¹¤¾ß£¬Õâ¸ö¹¤¾ßÀûÓÃÁËÄÚ½¨µ½JVMÀïÃæµÄJMXÖ¸ÁîÀ´ÌṩʵʱµÄÐÔÄܺÍ×ÊÔ´µÄ¼à¿Ø£¬°üÀ¨ÁËJava³ÌÐòµÄÄÚ´æʹÓã¬Heap size, Ï̵߳Ä״̬£¬ÀàµÄ·ÖÅä״̬ºÍ¿Õ¼äʹÓõȵȡ£
¡¡jinfo – jinfo¿ÉÒÔ´ÓcoreÎļþÀïÃæÖªµÀ±ÀÀ£µÄJavaÓ¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¬Ä¿Ç°Ö»ÓÐÔÚSolarisºÍLinuxµÄJDK°æ±¾ÀïÃæ²ÅÓС£
¡¡jmap – jmap ¿ÉÒÔ´ÓcoreÎļþ»ò½ø³ÌÖлñµÃÄÚ´æµÄ¾ßÌåÆ¥ÅäÇé¿ö£¬°üÀ¨Heap size, Perm sizeµÈµÈ£¬Ä¿Ç°Ö»ÓÐÔÚSolarisºÍLinuxµÄJDK°æ±¾ÀïÃæ²ÅÓС£
¡¡jdb – jdb ÓÃÀ´¶ÔcoreÎļþºÍÕýÔÚÔËÐеÄJava½ø³Ì½øÐÐʵʱµØµ÷ÊÔ£¬ÀïÃæ°üº¬Á˷ḻµÄÃüÁî°ïÖúÄú½øÐе÷ÊÔ£¬ËüµÄ¹¦ÄܺÍSun studioÀïÃæËù´øµÄdbx·Ç³£ÏàËÆ£¬µ« jdbÊÇרÃÅÓÃÀ´Õë¶ÔJavaÓ¦ÓóÌÐòµÄ¡£
¡¡jstat – jstatÀûÓÃÁËJVMÄÚ½¨µÄÖ¸Áî¶ÔJavaÓ¦ÓóÌÐòµÄ×ÊÔ´ºÍÐÔÄܽøÐÐʵʱµÄÃüÁîÐеļà¿Ø£¬°üÀ¨Á˶ÔHeap sizeºÍÀ¬»ø»ØÊÕ×´¿öµÄ¼à¿ØµÈµÈ¡£
¡¡jps – jpsÊÇÓÃÀ´²é¿´JVMÀïÃæËùÓнø³ÌµÄ¾ßÌå״̬, °üÀ¨½ø³ÌID£¬½ø³ÌÆô¶¯µÄ·¾¶µÈµÈ¡£
¡¡ÁíÍ⣬»¹ÓÐЩÆäËû¸½´øµÄ¹¤¾ßÔÚÕâÀïûÓÐÁгö£¬±ÈÈçHeap Analysis Tool, kill -3 ·½·¨µÈµÈ£¬ÕâЩÔÚJDK5.0֮ǰ¾ÍÓУ¬Í¬ÑùÒ²ÊǷdz£ÓÐÓõÄÐÔÄܵ÷ÓŹ¤¾ß£¬´ó¼Ò¿ÉÒÔ²ÎÕÕÏàÓ¦µÄÎĵµ×ÊÁÏÀ´Ñ§Ï°£¬ÔÚÎÄÕºóÃæÒ²»áÍƼöһЩÏàÓ¦µÄÎĵµ¸ø´ó¼Ò×÷Ϊ²Î¿¼¡£
ÔÚ×ö¹ýµÄÏîÄ¿ÖУ¬Ôø¾­Óм¸¸öÊÇʹÓÃjstackºÍjconsoleÀ´½â¾öÎÊÌâµÄ¡£
(ÒýÓãºhttp://java.chinaitlab.com/JDK/725690.html)


Ïà¹ØÎĵµ£º

¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ5ÕÂ


µÚ5ÕÂͼÐνçÃæÉè¼Æ(Ò»)
(Ò»)¿Î³ÌÄÚÈÝ
5.1 ͼÐνçÃæÉè¼Æ»ù´¡
5.1.1 AWI’ºÍSwing
5.1.2×é¼þºÍÈÝÆ÷
5.1.3ʼþÇý¶¯³ÌÐòÉè¼Æ»ù´¡
5.2¿ò¼Ü´°¿Ú .
5.3±êÇ©¡¢°´Å¥ºÍ°´Å¥Ê¼þ
5.3.1 ±êÇ©
5.3.2°´Å¥ºÍ°´Å¥Ê¼þ´¦Àí
5.4Ãæ°å
5.4.1 JPanel
5.4.2 JScrollPane
5.5²¼¾ÖÉè¼Æ
5.5.1 FlowI.ayout²¼¾Ö
5.5.2 BorderI.a ......

¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ8ÕÂ


µÚ8Õ ¶àÏß³Ì
(Ò»)¿Î³ÌÄÚÈÝ
8.1Ï̵߳Ļù±¾¸ÅÄî
8.1.1Ï̵߳ÄÉúÃüÖÜÆÚ
8.1.2Ï̵߳÷¶ÈÓëÓÅÏȼ¶
8.2 ThreadÀàºÍRunnable½Ó13
8.2.1 ThreadÀà
8.2.2 Runnable½Ó¿Ú
8.3Ï̻߳¥³âºÍͬ²½
8.3.1Ï̻߳¥³â
8.3.2Ïß³Ìͬ²½
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉܶàÏ̵߳ĸÅÄîºÍ±àд¶àÏ̳߳ÌÐòµÄ·½·¨£¬ÊµÏÖÏß³ÌÖ®¼äÏ໥ͨÐźÍͬ²½µÄ¼¼ ......

¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ10ÕÂ

µÚ10Õ ÍøÂçÓëÊý¾Ý¿â±à³Ì»ù´¡
(Ò»)¿Î³ÌÄÚÈÝ
10.1 JavaÍøÂç±à³Ì»ù´¡
10.1.1 IPµØÖ·ºÍInetAddressÀà
10.1.2ͳһ×ÊÔ´¶¨Î»·ûURL
10.1.3¿Í»§»ú/·þÎñÆ÷ģʽ
l0.2 JavaÊý¾Ý¿â±à³Ì»ù´¡
10.2.1 Java³ÌÐòÓëÊý¾Ý¿âÁ¬½Ó
10.2.2¼¸¸öÖØÒªµÄÀàºÍ½Ó¿Ú
10.2.3Êý¾Ý¿â²éѯ
10.2.4Êý¾Ý¿â¸üÐÂ
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉÜJavaÍøÂç± ......

Java ÒÀÀµ×¢Éä¹æ·¶£¨JSR

JCP SE/EE Ö´ÐÐίԱ»á
Õýʽ½ÓÊÜÁË
JSR 330
—— Dependency Injection for Java¡£¸Ã¹æ·¶ÓÚ ½ñÄê 5 Ô 9 ÈÕ
ÓÉ Google µÄ Bob Lee ÒÔ¼° SpringSource µÄ Rod Johnson ×÷Ϊ¹æ·¶Áìµ¼Ìá½»¸ø JCP£¬ÏÖÔÚÒѾ­Õýʽ·¢²¼£¬²»µÃ²»¸Ð̾¸Ã¹æ·¶±ê×¼»¯¹ý³ÌÖ®¿ì¡£ÔÚ ×îÖÕͶƱ½á¹ûÖÐ
£¬14 Ʊͨ¹ý£¬1 ƱδͶ£¬1 Ʊ·´¶Ô¡£
J ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ