Java JDK °æ±¾µÄÇø±ð
jdk6ºÍjdk5Ïà±ÈµÄÐÂÌØÐÔÓУº
1¡¢instrumentation
ÔÚ Java SE 6 ÀïÃ棬instrumentation °ü±»¸³ÓèÁ˸üÇ¿´óµÄ¹¦ÄÜ£ºÆô¶¯ºóµÄ instrument¡¢±¾µØ´úÂë instrument£¬ÒÔ¼°¶¯Ì¬¸Ä±ä classpath µÈµÈ¡£
2¡¢HttpÓÐËùÔöÇ¿
3¡¢ Java ¹ÜÀíÀ©Õ¹£¨JMX£© ¼Ü¹¹¼°Æä¿ò¼Ü£¬ÒÔ¼°ÔÚ Java SE 5 ÖÐÐÂÒýÈëµÄ JMX API -- java.lang.management °ü
4¡¢JDK 6 ÖÐÐÂÔö¼Ó±àÒëÆ÷ API£¨JSR 199£©¡£ÀûÓÃ´Ë API£¬Äú¿ÉÒÔÔÚÔËÐÐʱµ÷Óà Java ±àÒëÆ÷£¬¿ÉÒÔ±àÒ벻ͬÐÎʽµÄÔ´´úÂëÎļþ£¬»¹¿ÉÒԲɼ¯±àÒëÆ÷µÄÕï¶ÏÐÅÏ¢¡£
5¡¢Java DB ºÍ JDBC 4.0
6¡¢¶Ô½Å±¾ÓïÑÔµÄÖ§³Ö
Java SE 6 ÐÂÒýÈëµÄ¶Ô JSR 223 µÄÖ§³Ö£¬ËüÖ¼ÔÚ¶¨ÒåÒ»¸öͳһµÄ¹æ·¶£¬Ê¹µÃ Java Ó¦ÓóÌÐò¿ÉÒÔͨ¹ýÒ»Ì׹̶¨µÄ½Ó¿ÚÓë¸÷Öֽű¾ÒýÇæ½»»¥£¬´Ó¶ø´ïµ½ÔÚ Java ƽ̨Éϵ÷Óø÷Öֽű¾ÓïÑÔµÄÄ¿µÄ¡£
7¡¢XML API Óë Web ·þÎñ
Java SE 6 ÖÐÌṩµÄ XML ´¦Àí¿ò¼Ü£¬ÒÔ¼°ÔÚ´Ë¿ò¼ÜÖ®ÉϽáºÏ×¢ÊÍ£¨Annotation£© ¼¼Êõ£¬ËùÌṩµÄÇ¿´óµÄÕë¶Ô Web ·þÎñµÄÖ§³Ö
ÒªÏêϸµÄ¿ÉÒԲο´£º
http://www.ibm.com/developerworks/cn/java/j-lo-jse6/ ¶àÁ˲»ÉÙÐÂÌØÐÔ
Ò».Instrumentation
ÀûÓà Java ´úÂ룬¼´ java.lang.instrument ×ö¶¯Ì¬ Instrumentation ÊÇ Java SE 5 µÄÐÂÌØÐÔ£¬Ëü°Ñ Java µÄ instrument ¹¦ÄÜ´Ó±¾µØ´úÂëÖнâ·Å³öÀ´£¬Ê¹Ö®¿ÉÒÔÓà Java ´úÂëµÄ·½Ê½½â¾öÎÊÌâ¡£ÔÚ Java SE 6 ÀïÃ棬instrumentation °ü±»¸³ÓèÁ˸üÇ¿´óµÄ¹¦ÄÜ£ºÆô¶¯ºóµÄ instrument¡¢±¾µØ´úÂ루native code£©instrument£¬ÒÔ¼°¶¯Ì¬¸Ä±ä classpath µÈµÈ¡£ÔÚ Java SE 5 µ±ÖУ¬¿ª·¢ÕßÖ»ÄÜÔÚ premain µ±ÖÐÊ©Õ¹ÏëÏóÁ¦£¬Ëù×÷µÄ Instrumentation Ò²½öÏÞÓë main º¯ÊýÖ´ÐÐÇ°£¬ÕâÑùµÄ·½Ê½´æÔÚÒ»¶¨µÄ¾ÖÏÞÐÔ¡£ÔÚ Java SE 6 µÄ Instrumentation µ±ÖУ¬ÓÐÒ»¸ö¸ú premain¡°²¢¼ÝÆëÇý¡±µÄ¡°agentmain¡±·½·¨£¬¿ÉÒÔÔÚ main º¯Êý¿ªÊ¼ÔËÐÐÖ®ºóÔÙÔËÐС£
¶þ¡¢Http
ÔÚ Java SE 6 µ±ÖУ¬Î§ÈÆ×Å HTTP ÐÒé³öÏÖÁ˺ܶàʵÓõÄÐÂÌØÐÔ£ºNTLM ÈÏÖ¤ÌṩÁËÒ»ÖÖ Window ƽ̨ϽÏΪ°²È«µÄÈÏÖ¤»úÖÆ£»JDK µ±ÖÐÌṩÁËÒ»¸öÇáÁ¿¼¶µÄ HTTP ·þÎñÆ÷£»ÌṩÁ˽ÏΪÍêÉÆµÄ HTTP Cookie ¹ÜÀí¹¦ÄÜ£»¸üΪʵÓÃµÄ NetworkInterface£»DNS ÓòÃûµÄ¹ú¼Ê»¯Ö§³ÖµÈµÈ¡£
HTTP Cookie¹ÜÀí¿ÉÒÔÓ¦Óÿͻ§²Ù×÷ÁÙʱ±äÁ¿µÄ±£´æ£¬Èç²éѯÌõ¼þ£¬µ±Ç°×´Ì¬µÈ
Èý¡¢JMXÓëϵͳ¹ÜÀí
¹ÜÀíϵͳµÄ¹¹¼Ü
ͼ 1. ¹ÜÀíϵͳ¹¹¼Ü
ÉÏͼ·ÖÎöÁ˹ÜÀíϵͳµÄ»ù±¾¹¹¼Üģʽ
Ïà¹ØÎĵµ£º
1995Ä꣬ÃÀ¹úSun Microsystems¹«Ë¾ÕýʽÏòITÒµ½çÍƳöÁËjavaÓïÑÔ£¬¸ÃÓïÑÔ¾ßÓа²È«¡¢¿çƽ̨¡¢ÃæÏò¶ÔÏó¡¢¼òµ¥¡¢ÊÊÓÃÓÚÍøÂçµÈÏÔÖøÌص㣬µ±Ê±ÒÔwebΪÖ÷ÒªÐÎʽµÄ»¥ÁªÍøÕýÔÚѸÃÍ·¢Õ¹£¬javaÓïÑԵijöÏÖѸËÙÒýÆðËùÓгÌÐòÔ±ºÍÈí¼þ¹«Ë¾µÄ¼«´ó¹Ø×¢£¬³ÌÐòÔ±ÃǷ׷׳¢ÊÔÓÃjavaÓïÑÔ±àдÍøÂçÓ¦ÓóÌÐò£¬²¢ÀûÓÃÍøÂç°Ñ³ÌÐò·¢²¼µ½ÊÀ½ç¸÷µØ½øÐÐÔËÐС ......
½üÆÚµÄÒ»¸öÏîÄ¿ÐèҪʵÏÖÉãÏñͷͼÏñ²É¼¯£¬¾¹ýһϵÁеÄÕÛÌÚÒÔºó£¬ÖÕÓÚʵÏÖÁËÕâ¸ö¹¦ÄÜ£¬ÏÖÕûÀíһϡ£
±¾Éí¾Íjava¼¼ÊõÀ´Ëµ£¬ÒªÊµÏÖÉãÏñÍ·¶þ´Î¿ª·¢£¬²É¼¯ÉãÏñͷͼƬ£¬ÐèҪʹÓõ½JMF£¬JMFÊʺÏʹÓÃÔÚj2se³ÌÐòµ±ÖУ¬ÎÒÐèÒªÔÚweb³ÌÐòÖе÷ÓÃÉãÏñÍ·£¬ºÜÃ÷ÏÔJMFÊǸ㲻¶¨ÁË£¬Ïë¹ýдһ¸öapplet³ÌÐò£¬Ö»ÊÇÄǶ«Î÷ÒªÇó¿Í»§¶Ë±ØÐëÒªÓÐjre»·¾ ......
1. ÏÈдһ¸öSingletonµÄclass
package stone;
public class Singleton {
private static Singleton instance;
private Singleton() {}
public static Singleton getInstance(){
if(instance==null)
&n ......
³öÏÖÕâ¸ö´íÎó£¬ËÑË÷µ½1¡¢ÐÞ¸Äeclipse.ini£»2¡¢Ìí¼Ó»·¾³±äÁ¿JAVA_OPTS=-Xms64m -Xmx512m£¬3¡¢ÔÚrun configurations->program argumentsÔö¼ÓXms64m -Xmx512m£¬¾ùÎÞЧ¡£
×îºó½â¾ö°ì·¨£¬ÔÚÓëprogram argumentsһǽ֮¸ôµÄVM argumentsÖÐÌí¼ÓXms64m -Xmx512m¸ã¶¨¡£ ......