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

[JavaÐÔÄÜÆÊÎö]JVM Management API


      
JVM±¾ÉíÌṩÁËÒ»×é¹ÜÀíµÄAPI£¬Í¨¹ý¸ÃAPI£¬ÎÒÃÇ¿ÉÒÔ»ñÈ¡µÃµ½JVMÄÚ²¿Ö÷ÒªÔËÐÐÐÅÏ¢£¬°üÀ¨ÄÚ´æ¸÷´úµÄÊý¾Ý¡¢JVMµ±Ç°ËùÓÐÏ̼߳°ÆäÕ»Ïà¹ØÐÅÏ¢µÈ
µÈ¡£¸÷ÖÖJDK×Ô´øµÄÆÊÎö¹¤¾ß£¬°üÀ¨jps¡¢jstack¡¢jinfo¡¢jstat¡¢jmap¡¢jconsoleµÈ£¬¶¼ÊÇ»ùÓÚ´ËAPI¿ª·¢µÄ¡£±¾Æª¶ÔÕⲿ
·ÖÄÚÈݽøÐÐÒ»¸öÏêϸµÄ˵Ã÷¡£
       ²Î¿¼£ºhttp://java.sun.com/javase/6/docs/api/java/lang/management/package-summary.html
Ò»¡¢Management API
       ÎÒÃÇÏÈ¿´Ò»Ï´ÓSun JVMÎÒÃÇ¿ÉÒÔ»ñÈ¡µ½ÄÄЩÐÅÏ¢£¬ÈçÏÂͼ£¨À´×ÔÓÚJConsoleµÄMBean²¿·ÖµÄ½Øͼ£©£º
      
      1£®HotSpotDiagnostic£º·Ç±ê×¼µÄ¼à¿ØJMX£¬Õâ¿éÊÇSun JVM×Ô´øµÄ£¬Ö÷ÒªÌṩÁËÁ½¸ö¹¦ÄÜ
ÐÞ¸ÄJVMµÄÆô¶¯²ÎÊý£¨Æ©ÈçÔÚ²»ÐèÒªÖØÆôµÄÇé¿öÏÂÉèÖÃ-XX:+HeapDumpOnOutOfMemoryError²ÎÊýʹµÃJVMÄÚ´æ²»×ãµÄʱºò×Ô¶¯dump³ö¶Ñ¿Õ¼äµ½ÎļþÌṩºóÐø·ÖÎö£©
Dump¶ÑÐÅÏ¢µ½Îļþ£¬¿ÉÒԲ²âjmap¹¤¾ßÊÇ»ùÓڴ˹¦ÄÜÀ´Íê³ÉµÄ
     ÎÒÃÇͨ¹ýcom.sun.management.HotSpotDiagnosticMXBean¶¨ÒåÁ˽âÆäÖ÷Òª¹¦ÄÜ
Java´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://ayufox.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://ayufox.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=public%20interface%20HotSpotDiagnosticMXBean%0A%7B%0A%20%20%20%20void%20dumpHeap(String%20s%2C%20boolean%20flag)%20throws%20IOException%3B%0A%20%20%20%20List%20getDiagnosticOptions()%3B%0A%20%20%20%20VMOption%20getVMOption(String%20s)%3B%0A%20%20%20%20void%20setVMOption(String%20s%2C%20String%20s1)%3B%0A%7D" quality="high" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="15" width="14">
public
 
interface
 HotSpotDiagnosticMXBean  
{  
    void
 dumpHeap(String s, 
boolean
 flag) 
throws
 IOException;  
    List get


Ïà¹ØÎĵµ£º

JavaÖÐÀàµÄÉúÃüÖÜÆÚ

  JavaÐéÄâ»ú¹ÜÀíÀàºÍ¶ÔÏóµÄÉúÃüÖÜÆÚ£»
£¨1£©ÀàµÄÉúÃüÖÜÆÚ´ÓÀà±»¼ÓÔØ£¬Á¬½Ó£¬³õʼ»¯¿ªÊ¼£¬µ½À౻жÔؽáÊø£»
£¨2£©Àà´¦ÓÚÉúÃüÖÜÆÚʱ£¬ËüµÄ¶þ½øÖÆÊý¾ÝλÓÚÔËÐÐʱ·½·¨ÇøÄÚ£¬ÔÚ¶ÑÇø»¹ÓÐÒ»¸öÏàÓ¦µÄÃèÊöÀàµÄClassÀàµÄ¶ÔÏó£»
£¨3£©Ö»Óе±Àà´¦ÓÚÉúÃüÖÜÆÚÖÐʱ£¬Java³ÌÐò²ÅÄܹ»Ê¹ÓÃËü¡£
1.JavaÐéÄâ»ú¼°³ÌÐòµÄÉúÃüÖÜÆÚ
£¨1£© ......

javaµÄÏà¹Ø¼¼Êõ

     1¡¢JDBC£¨Java Database Connectivity£©ÌṩÁ¬½Ó¸÷ÖÖ¹ØϵÊý¾Ý¿âµÄͳһ½Ó¿Ú¡£
¡¡¡¡2¡¢EJB(Enterprise JavaBeans)ʹµÃ¿ª·¢Õß·½±ãµØ´´½¨¡¢²¿ÊðºÍ¹ÜÀí¿çƽ̨µÄ»ùÓÚ×é¼þµÄÆóÒµÓ¦Óá£
¡¡¡¡3¡¢Java RMI(Java Remote Method Invocation)ÓÃÀ´¿ª·¢·Ö²¼Ê½JavaÓ¦ÓóÌÐò¡£Ò»¸öJava¶ÔÏóµÄ·½·¨Äܱ»Ô¶³ÌJavaÐéÄâ ......

JavaÀàµÄ³õʼ»¯Ë³Ðò

JavaÀàµÄ³õʼ»¯Ë³Ðò
¡¡¡¡ÎÒ°ÑJavaÀàµÄ³õʼ»¯Ë³Ðò·ÖΪÁ½²¿·Ö¡£µÚÒ»²¿·ÖÊÇÀàµÄ³õʼ»¯£¬µÚ¶þ²¿·ÖÊǶÔÏóµÄ³õʼ»¯¡£
¡¡¡¡ÔÚ³õʼ»¯Ö®Ç°JVM±ØÐëÏȰѸÃÀàµÄ×Ö½ÚÂë¼ÓÔص½ÄÚ´æÖÐÀ´¡£Õâʱ²»¹Ü´´²»´´½¨¶ÔÏ󶼻áÂíÉÏÖ´ÐÐÀàµÄ³õʼ»¯£º
¡¡¡¡Ö´Ðо²Ì¬³õʼ»¯±í´ïʽ£¨Èçstatic int a = 10£©ºÍ¾²Ì¬³õʼ»¯¿é£¨¼´static£û£ýÖеÄÄÚÈÝ£©£¬×¢ÒâÁ½ ......

JavaÖжÔÏóµÄÉúÃüÖÜÆÚ

  £¨1£© ¶ÔÏóÉúÃüÖÜÆڵĿªÊ¼
             ¶ÔÏóÉúÃüÖÜÆÚ¿ªÊ¼Ê±£¬ÐèҪΪ¶ÔÏó·ÖÅäÄڴ棬²¢ÇÒ³õʼ»¯ËüµÄʵÀý±äÁ¿£»
           ¶ÔÏóÉúÃüÖÜÆÚ½áÊø
        & ......

Javaѧϰ֮· The Road Of Java Study¡¶×ª¡·

Javaѧϰ֮· --The Road Of Java Study
JAVAÊÇÒ»ÖÖƽ̨£¬Ò²ÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬ÈçºÎѧºÃ³ÌÐòÉè¼Æ²»½ö½öÊÊÓÃÓÚJAVA£¬¶ÔC++µÈÆäËû³ÌÐòÉè¼ÆÓïÑÔÒ²Ò»Ñù¹ÜÓá£Óбà³Ì¸ßÊÖÈÏΪ£¬JAVAÒ²ºÃCÒ²ºÃûʲô·Ö±ð£¬ÄÃÀ´¾ÍÓá£ÎªÊ²Ã´ËûÃÇÄÜ´ïµ½Èç´Ë¾³½ç£¿ÎÒÏëÊÇÒòΪ±à³ÌÓïÑÔÖ®¼äÓй²Í¨Ö®´¦£¬Áì»áÁ˱à³ÌµÄ¾«Ë裬×ÔÈ»Äܹ»×öµ½Ò»Í¨°Ùͨ¡£Èçº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ