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

java¿ª·¢ÖеÄÐéÄâ»úÄÚ´æÎÊÌâ

          ×î½üÔËÐгÌÐò£¬ÀÏÊÇÓöµ½ÄÚ´æÒç³öµÄÎÊÌ⣬Out of Memory(ϵͳÄÚ´æ²»×ã)µÄÒì³£¡£×Ðϸ²é×ÊÁÏ£¬ºÃºÃѧϰÁËÒ»ÏÂÐéÄâ»úµÄ¼¸Ö»£¬²ÅÖªµÀ£¬ÕâÊÇÒòΪJavaÐéÄâ»úĬÈÏ·ÖÅäµÄÄÚ´æÖ»ÓÐ64M£¬Èç¹ûÓ¦ÓõıȽϴ󣬳¬³öÁË64M£¬JavaÐéÄâ»ú¾Í»áÅ׳öOutOfMemoryError£¬²¢Í£Ö¹ÔËÐС£ËùÒÔ£¬Èç¹ûÎÒÃÇÒªÔËÐдó³ÌÐò£¬¾Í±ØÐëÌí¼ÓÄÚ´æʹÓÃÃüÁî-Xms£¨×îСʹÓÃÄڴ棩 -Xmx£¨×î´óʹÓÃÄڴ棩¡£
          Ò»°ãÔÚ¿ª·¢ÓУ¬ÎÒÃÇÓÐÈçϼ¸ÖÖ¿ÉÄÜÓõ½µÄµØ·½¡£
          1.µ¥¶ÀµÄ.class
          java -Xms64m -Xmx256m Test
          2.ÔÚeclipseÖУ¬ÔËÐÐÕâÖÖ³ÌÐò¿ÉÒÔÕâÑùÅäÖã¬Run->Open Run Dialog->Arguments,ÔÚVM argumentsÖÐÊäÈë -Xms64m -Xmx256m £¬µã»÷Run¾Í¿ÉÒÔÔËÐгÌÐòÁË¡£
          3.Ö±½ÓÐÞ¸ÄeclipseÐéÄâ»ú£¬window->Preferences->Java->Installed JREsÑ¡ÔñÔËÐеÄÐéÄâ»ú£¬ÔÚDefault VM ArgumentsÖÐ
¼ÓÈëÊäÈë-Xms64m -Xmx256m £¬Ò²¿ÉÒÔÌí¼ÓÆäËû²ÎÊýÈç-Xms128M -XX:PermSize=64M -XX:MaxPerSize=128M
          4.ÐÞ¸Äeclipse.ini
           -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
          5.TomcatÐèÒªÐÞ¸Ä%CATALINA%\bin\catalina.batÎļþ£¬ÔÚ¿ªÍ·µÄµØ·½¼ÓÈëset JAVA_OPTS=-Xms256m -Xmx512m,
Èç¹ûûÓÐ catalina.batÎļþ£¬¿ÉÒÔÔÚÔËÐÐtomcat6w.exeµÄʱºò£¬ÐÞ¸ÄÆäÖеÄInitial memory poolºÍMaximum memory poolµÄÖµ£¬·Ö±ðΪ256£¬512.
          ÕâÀïÓм¸¸öÎÊÌ⣺
1. ¸÷¸ö²ÎÊýµÄº¬Òåʲô£¿
2. ΪʲôÓеĻúÆ÷ÎÒ½«-XmxºÍ-XX:MaxPermSize¶¼ÉèÖÃΪ512MÖ®ºóEclipse¿ÉÒÔÆô¶¯£¬¶øÓÐЩ»úÆ÷ÎÞ·¨Æô¶¯£¿
3. ΪºÎ½«ÉÏÃæµÄ²ÎÊýдÈëµ½eclipse.iniÎļþEclipseûÓÐÖ´ÐжÔÓ¦µÄÉèÖã¿
ÏÂÃæÎÒÃÇÒ»Ò»½øÐлشð
1. ¸÷¸ö²ÎÊýµÄº¬Òåʲô£¿
²ÎÊýÖÐ-vmargsµÄÒâ˼ÊÇÉèÖÃJVM²ÎÊý£¬ËùÒÔºóÃæµÄÆäʵ¶¼ÊÇJVMµÄ²ÎÊýÁË£¬ÎÒÃÇÊ×ÏÈÁ˽â


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

java Óï·¨:

java Óï·¨:
JavaµÄ»ù±¾·ûºÅ£¨token£©
JavaµÄµ¥´Ê·ûºÅÓÐÎåÖÖ£º¹Ø¼ü×Ö¡¢±êʶ·û¡¢³£Á¿¡¢·Ö¸ô·ûºÍ²Ù×÷·û¡£
JavaµÄ×Ö·û¼¯
Java ²ÉÓÃÒ»ÖÖ³ÆΪunicodeµÄ×Ö·û¼¯£¬¸Ã×Ö·û¼¯ºÏÊÇÒ»ÖÖеıàÂë±ê×¼£¬Óë³£¼ûµÄASCIIÂëµÄÇø±ðÔÚÓÚ£º
unicodeʹÓÃ16λ¶þ½øÖƶø²»ÊÇ8λÀ´±íʾһ¸ö×Ö·û¡£
unicode×Ö·û¼¯ÖÐÔö¼ÓÁËÐí¶à·ÇÀ­¶¡Óï×Ö·û¡£
......

Flex+JavaÁ¬½ÓSQLServerÊý¾Ý¿â

 Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServi ......

Êý¾Ý½á¹¹(LinkedListµÄjavaʵÏÖ)

 package day10;
import java.util.*;
public class MyLinkedList implements List
{
static class Node
{
public Object data;
public Node next;
public Node(Object data)
{
this.data=data;
}
}
private Node head;
public  MyLinkedList()
{
head=new Node(0);
}
public void add(int ind ......

Javaѧϰ´ÓÈëÃŵ½¾«Í¨

Javaѧϰ´ÓÈëÃŵ½¾«Í¨
ѧϰǰÁ˽â
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJDKÊÇSun¹«Ë¾·¢²¼µÄJDK£¬³ýÁËSunÖ®Í⣠......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ