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

»ùÓÚ JVMTI ʵÏÖ Java Ï̵߳ļà¿Ø

¼¶±ð£º Öм¶
Àî Áè
, Èí¼þ¼Ü¹¹Ê¦, IBM
2009 Äê 12 ÔÂ 10 ÈÕ
Ëæ
×ŶàºË CPU µÄÈÕÒæÆÕ¼°£¬Ô½À´Ô½¶àµÄ Java
Ó¦ÓóÌÐòʹÓöàÏ̲߳¢ÐмÆËãÀ´³ä·Ö·¢»ÓÕû¸öϵͳµÄÐÔÄÜ¡£¶àÏ̵߳ÄʹÓÃÒ²¸øÓ¦ÓóÌÐò¿ª·¢ÈËÔ±´øÀ´Á˾޴óµÄÌôÕ½£¬²»ÕýÈ·µØʹÓöàÏ߳̿ÉÄÜÔì³ÉÏß³ÌËÀËø»ò×ÊÔ´¾º
Õù£¬µ¼ÖÂϵͳ̱»¾¡£Òò´Ë£¬ÐèÒªÒ»ÖÖÔËÐÐʱÏ̼߳à¿Ø¹¤¾ßÀ´°ïÖú¿ª·¢ÈËÔ±Õï¶ÏºÍ¸ú×Ù Java Ïß³Ì״̬µÄÇл»¡£JDK 1.5
¼°ÆäºóÐø°æ±¾ÌṩÁ˼à¿ØÐéÄâ»úÔËÐÐ״̬µÄ½Ó¿Ú JVMTI¡£±¾ÎÄÉîÈë·ÖÎöÁË JVM ÖÐµÄ Java
Ïß³ÌÄ£ÐÍ£¬Éè¼ÆÁËÓÃÓÚ¼à¿ØÏß³Ì״̬Çл»µÄÄ£ÐÍ£¬²¢»ùÓÚ JVMTI ʵÏÖÁË¶Ô Java Ïß³ÌÇл»½øÐмà¿ØµÄ´úÀí³ÌÐò¡£
JVMTI ¹¤¾ß½Ó¿Ú
Ëæ
×ŶàºË CPU ¼¼ÊõµÄ·¢Õ¹£¬¶àÏ̱߳à³Ì¼¼Êõ±»¹ã·ºµØÓ¦Ó㬴Ӷø³ä·Ö·¢»ÓÕû¸öϵͳµÄÐÔÄÜ¡£Java
ÓïÑÔ¶Ô¶àÏ̱߳à³ÌÌṩÁËÓïÑÔ¼¶µÄÖ§³Ö£¬¿ÉÒÔ·½±ãµØ´´½¨¡¢ÔËÐС¢Ïú»ÙÏ̡߳£È»¶ø£¬¶àÏ̵߳ÄʹÓÃÒ²¸øÓ¦ÓóÌÐò¿ª·¢ÈËÔ±´øÀ´Á˾޴óµÄÌôÕ½£¬²»ÕýÈ·µØʹÓöàÏ߳̿É
ÄÜÔì³ÉÏß³ÌËÀËø»ò×ÊÔ´¾ºÕù£¬µ¼ÖÂϵͳ̱»¾¡£
ΪÁË°ïÖú Java ¿ª·¢ÈËÔ±Õï¶ÏºÍ¸ú×Ù Java Ïß³Ì״̬µÄÇл»£¬Sun
¹«Ë¾ÔÚ Java ¿ª·¢¹¤¾ß°ü£¨Java2 Software Development Kit, JDK£©1.5.0 °æ±¾ÖÐÒý½øÁË Java
ÐéÄâ»ú¹¤¾ß½Ó¿Ú£¨Java Virtual Machine Toolkit Interface£¬JVMTI£©£¬ÓÃÓÚÌæ´úÔÚÏÈÇ°µÄ JDK
°æ±¾ÖÐ×÷ΪÊÔÑ鹦ÄÜ´æÔÚµÄ Java ÐéÄâ»úÆÊÎö½Ó¿Ú£¨Java Virtual Machine Profiling
Interface£¬JVMPI£©ºÍ Java ÐéÄâ»úµ÷ÊÔ½Ó¿Ú£¨Java Virtual Machine Debugging
Interface£¬JVMDI£©¡£Í¨¹ý JVMTI ½Ó¿Ú¿ÉÒÔ´´½¨´úÀí³ÌÐò£¨Agent£©ÒÔ¼àÊӺͿØÖÆ Java
Ó¦ÓóÌÐò£¬°üÀ¨ÆÊÎö¡¢µ÷ÊÔ¡¢¼à¿Ø¡¢·ÖÎöÏ̵߳ȵȣ¬Æä¼Ü¹¹Ä£ÐÍÈçͼ 1 Ëùʾ¡£


ͼ 1. JVMTI ¼Ü¹¹Ä£ÐÍ

Agent ¿ÉÒÔÏòÔËÐÐÖеÄÐéÄâ»úʵÀý¶©ÔĸÐÐËȤµÄʼþ£¬µ±ÕâЩʼþ·¢ÉúµÄʱºò£¬»áÒÔʼþ»Øµ÷º¯ÊýµÄ·½Ê½¼¤»î´úÀí³ÌÐò£¬Í¬Ê± JVMTI
ÌṩÁËÖÚ¶àµÄ¹¦Äܺ¯Êý£¬ÒÔ²éѯºÍ¿ØÖÆ Java Ó¦ÓóÌÐòµÄÔËÐÐ״̬¡£Agent ͨ¹ý JVMTI
ËùÌṩµÄ½Ó¿ÚÓëÐéÄâ»ú½øÐÐͨÐÅ£¬²¢Í¬²½¼à¿ØÐéÄâ»úµÄÔËÐÐ״̬£¬ËüÓëÔËÐÐÖÐµÄ Java Ó¦ÓóÌÐòÊÇÏà¶Ô¶ÀÁ¢µÄ£¬²»»á¸ÉÈųÌÐòµÄÕý³£ÔËÐС£Agent
¿ÉÒÔÓÃÈκÎÖ§³Ö C ÓïÑÔ±ê×¼µÄ±¾µØÓïÑÔÀ´±àд£¬²¢ÒÔ¶¯Ì¬Á´½Ó¿âµÄ·½Ê½´æÔÚ£»Java ³ÌÐòÆô¶¯µÄʱºò¿ÉÒÔ¼ÓÔØÕâ¸ö¶¯Ì¬Á´½Ó¿â¡£
»ùÓÚ JVMTI ½Ó¿Ú¹¹½¨µÄ Agent ¿ÉÒÔ·½±ãµØʵÏÖ¶Ô Java Ïß³Ì״̬Çл»µÄ¸ú×Ù£¬´Ó¶øʹ¿ª·¢ÈËÔ±Äܹ»ÔÚÔËÐÐʱÇå³þµØÁ˽â¶àÏß³ÌÓ¦ÓóÌÐòÖÐÏ̵߳Ť×÷Çé¿ö£¬·½±ã½øÐе÷ÊԺͳý´í¡


Ïà¹ØÎĵµ£º

javaÖеÄ==²Ù×÷·ûÓëequals·½·¨

==²Ù×÷·ûÓëequals·½·¨µÄÇø±ð£º
    ==ÊÇÒýÓÃÀàÐͱȽÏÒýÓÃ(Ò²¾ÍÊDZȽÏÄÚÈݺ͵ØÖ·)£»»ù±¾ÀàÐͱȽÏÖµ£»
    equals()·½·¨Ö»ÄܱȽÏÒýÓÃÀàÐÍ£¬"=="¿ÉÒԱȽÏÒýÓÃÀàÐͼ°»ù±¾ÀàÐÍ£»
    ÌØÀý£ºµ±ÓÃequals()·½·¨½øÐбȽÏʱ£¬¶ÔÀàFile¡¢String¡¢Date¼°·â×°ÀࣨWrapper°ü×° ......

Javaµ¥Àýģʽ

  ×÷Ϊ¶ÔÏóµÄ´´½¨Ä£Ê½,µ¥Àýģʽȷ±£Ä³¸öÀàÖ»ÓÐÒ»¸öʵÀý£¬¶øÇÒ×ÔÐÐʵÀý»¯²¢ÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£Õâ¸öÀà³ÆΪµ¥ÀýÀà¡£Óɶ¨Òå¿ÉÒÔ×ܽá³öµ¥ÀýģʽµÄÒªµãÓÐÈý¸ö£ºÒ»Êǵ¥ÀýÀàÖ»ÄÜÓÐÒ»¸öʵÀý£»¶þÊÇËü±ØÐë×ÔÐд´½¨Õâ¸öʵÀý£»ÈýÊÇËü±ØÐë×ÔÐÐÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£
    ÔÚ¼ÆËã»úϵͳÖУ¬Ï̳߳ء¢»º´æ¡¢ÈÕÖ ......

Agile Java ѧϰ±Ê¼Ç£¨Ò»£© Ãô½Ý×ÛÊö

     µÚÒ»´Î³¢ÊÔдѧϰ±Ê¼Ç£¬ÒòΪ¾õµÃÒÔǰѧ¹ýµÄ¶«Î÷³¤Ê±¼ä²»ÓþͶ¼ÍüÁË¡£Ò²²»ÖªµÀÕâÑù×öÖµ²»ÖµµÃ£¬ÒòΪ±Ï¾¹Ð´Ñ§Ï°±Ê¼Ç»á»¨·ÑÒ»¶¨µÄʱ¼ä£¬¶ÔÓÚÒ»¸öÈí¼þ¹¤³ÌרҵµÄ´óÈýѧÉúÀ´Ëµ£¬¿Î³Ì·±ÖØÊÇÖÚËùÖÜÖªµÄ¡£¶øÇÒÎÒµÄÎıÊÓÖ²»ºÃ£¬Ê±³£Ð´×ÅдמͲ»ÖªµÀ¸ÃÕâôдÁË£¬ÊôÓÚÄÇÖÖÐÄÖª¶ÇÃ÷¾ÍÊÇ˵²»³öÀ´µÄÀàÐÍ¡£²»¹ý£ ......

Java¿ª·¢¹¤¾ß

eclipse¹Ù·½ÍøÕ¾
http://www.eclipse.org/downloads/
Eclipse 3.4M2¹Ù·½ÏÂÔصØÖ· ´óС£º140M
http://download.actuatechina.com/eclipse/eclipse/downloads/drops/S-3.4M2-200709210919/eclipse-SDK-3.4M2-win32.zip
Eclipse Classic3.41 ´óС:151M
http://www.eclipse.org/downloads/download.php?file=/eclipse/down ......

Agile Java ѧϰ±Ê¼Ç£¨¶þ£© Æð²½

ÓÉÓÚÓÐÒ»¶¨µÄJavaºÍJUnitµÄ»ù´¡£¬ËùÒԸоõµÚÒ»¿Î±È½Ï¼òµ¥£¬µ«ÊÕ»ñ»¹ÊÇÓеģ¬±ÈÈç˵Öع¹²¿·Ö½éÉܵÄÄÚÈÝ¡£
JUnitÒªµã£º
²âÊÔ·½·¨µÄÃüÃû¹æÔò£º
l  ·½·¨±ØÐëÉùÃ÷Ϊpublic
l  ·½·¨µÄ·µ»ØÖµ±ØÐëΪvoid
l  ·½·¨µÄÃû×Ö±ØÐëÒÔСдµÄtestΪǰ׺
l  ·½·¨²»ÄܽÓÊÜÈκβÎÊý
 
Öع¹Òªµã£º
1. &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ