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

Jconsole ºÍ jps ÎÞ·¨ÏÔʾ±¾µØ Java ½ø³ÌÁбí

Ç°Ò»ÕóÔÚ¹«Ë¾ÀïʹÓà jconsle ʱһÇÐÕý³££¬È»¶øÔÚ¼ÒÖеĻúÆ÷ÉÏÈ´³öÏÖÁ˱êÌâËùʾµÄÎÊÌ⣺
jconsole ºÍ jps ÎÞ·¨ÏÔʾ±¾µØ Java ½ø³ÌÁÐ±í¡£
µ±Ê±Ö±½ÓÀûÓà -Dcom.sun.management.jmxremote.port=port Æô¶¯Ä¿±ê java ½ø³Ì£¬²¢ÔÚ jconsole ÖÐͨ¹ý localhost:port ·½Ê½³É¹¦Á¬½ÓÉÏÄ¿±ê java ½ø³Ì¡£ÓÐÁËÕâ¸ö work around Ö®ºó£¬¶ÔÕâ¸öÎÊÌâÒ²¾ÍûÓÐÌ«ÔÚÒâ¡£
ÆäʵÕâ¸öÎÊÌâµÄÕý½âÈçÏ£º
ÔÚ Win32 ϵͳÉÏ£¬Ã¿¸ö java ½ø³ÌÆô¶¯Ö®ºó¶¼ÔÚ %TMP%\hsperfdata_user £¨ user Ϊµ±Ç°µÇ¼Óû§Ãû£©Ä¿Â¼Ï½¨Á¢Ò»¸öÒԸà java ½ø³Ì pid ΪÎļþÃûµÄÎļþ£¬ÓÃÒԼǼ¸Ã java ½ø³ÌµÄһЩÐÅÏ¢¡£¶ø jconsole ºÍ jps ÕýÊÇÀûÓÃÕâЩÎļþÀ´»ñÈ¡µ±Ç°ÏµÍ³ÖÐ java ½ø³ÌµÄÐÅÏ¢µÄ¡£¸ù¾Ý
http://java.sun.com/j2se/1.5.0/docs/guide/management/faq.html#win1
µÄ½âÊÍ£¬Èç¹û¸ÃĿ¼λÓÚ FAT ÎļþϵͳÏ£¬»òÕßλÓÚ NTFS ÎļþϵͳÏ£¬µ«µ±Ç°Óû§¶Ô %TMP%\hsperfdata_user Ŀ¼µÄ·ÃÎÊȨÏÞ²»×㣬ÎÞ·¨´´½¨ºÍдÈë¸ÃÎļþ£¬jconsole ºÍ jps ¾ÍץϹÁË¡£
ÔÚ hsperfdata_user Ŀ¼ÏÂÊÖ¶¯ÊÔһϣ¬¿´ÊÇ·ñ¿ÉÒÔ´´½¨Îļþ£¬¾ÍÖªµÀµ±Ç°Óû§¶Ô¸ÃĿ¼ÊÇ·ñÓµÓжÁдȨÏÞÁË¡£
ÎÒµÄÇé¿öÊôÓÚµÚ¶þÖÖ£¬½â¾ö·½·¨×ÔÈ»ÊǶԸø¸ÃĿ¼½øÐÐÕýÈ·µÄ NTFS ȨÏÞÉèÖ㬷½·¨Óв»ÉÙ£¬±ÈÈç¿ÉÒÔÀûÓà cygwin Ï嵀 chmod À´¼ä½ÓÐÞ¸Ä NTFS µÄ ACL £¬»òÕßÖ±½ÓʹÓà cacls À´ÉèÖøÃĿ¼µÄ ACL£º
cacls %TMP%\hsperfdata_user /G Everyone:F
ÒÔÉÏÃüÁîÊǶÔËùÓÃÓû§¸³ÓèÄ¿±êĿ¼µÄËùÓзÃÎÊȨÏÞ——Õâô×ö×ÔÈ»ÊÇ͵ÁËÀÁ……µ«Êǵ±³õ¿´ cygwin ÊÖ²áµÄʱºò¾Í±» NTFS µÄ ACL µÄ¸´ÔӶȸøÏŵ½ÁË£¬Ò»Ê±°ë»á¶ùʵÔÚ²»ÏëÉÕâ¸öÍæÒâ¶ù……
ÁíÍ⣬Ϊʲô¸ÃĿ¼λÓÚ FAT ÎļþϵͳÏÂÒ²»á³öÎÊÌ⣬ÎÒ»¹²»ÖªµÀ¾ßÌåÔ­Òò¡£


Ïà¹ØÎĵµ£º

¡¶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 µ÷ÓÃÃüÁî ±¸·ÝmysqlÊý¾Ý¿â

 ´úÂëÈçÏ£º
  1  String command  =   " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
  2      try    {
  3     Process process& ......

JAVA²Ù×÷XMLµÄÍêÕûÀý×Ó

ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
 <book>
  < ......

javaÉè¼Æģʽ

1¡¢FACTORY£¨¹¤³§Ä£Ê½£©
2¡¢BUILDER£¨½¨Ôìģʽ£©
3¡¢FACTORY METHOD£¨¹¤³§·½·¨Ä£Ê½£©
4¡¢PROTOTYPE£¨Ô­Ê¼Ä£ÐÍģʽ£©
5¡¢SINGLETON£¨µ¥Àýģʽ£©
6¡¢ADAPTER£¨ÊÊÅäÆ÷ģʽ£©
7¡¢BRIDGE£¨ÇÅÁºÄ£Ê½£©
8¡¢COMPOSITE£¨ºÏ³Éģʽ£©
9¡¢DECORATOR£¨×°ÊÎģʽ£©
10¡¢FACADE£¨ÃÅÃæģʽ£©
11¡¢FLYWEIGHT£¨ÏíԪģʽ£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ