이클립스에 대해서 메모리를 확잡으면 된다.

 

이클립스 설치 디렉토리에 eclipse.ini 파일이 존재한다. 이 파일을 보면 다음과 같다.

 

-vmargs
-Xms64m
-Xmx256m

-Xms256m로 수정해보시라. 좀 빨리 뜬다. 요즘 swap하니라.. 일을 못 할 지경에 다다랐다. ㅜ.ㅜ

 

저게 머냐구 묻거든... 아래를 참조하시오.

 

관련자료.

http://www.instantiations.com/codepro/ws/docs/faq.html

 

How can I improve Application Developer/Eclipse startup time, reduce swapping and eliminate unnecessary garbage collection?
Begin by specifying the starting amount of memory (-vmargs -Xms###M) in your Application Developer/Eclipse startup command line (e.g., the target field within a Windows shortcut). If this is not specified, Eclipse's starting amount of memory is quite small (only 64 MB - see http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html and scroll down until you find the -Xms option description), and can really slow down your startup and initial usage time. What happens with a small starting memory like 64 MB is that the java virtual machine (and thus Eclipse)...
  • tries to use currently allocated memory (initially 64MB)
  • garbage collects several times
  • finally determines that it really needs more memory
  • allocates more memory incrementally
  • repeats this process until it reaches a steady state

If you know you are going to use at least 128 MB or more, then try specifying -Xms128M or larger as the starting memory. It should improve your startup time and initial usage prior to swapping.

If you are certain that you are going to swap, then at least try to reduce the amount of time spent garbage collecting. For example, if Application Developer/Eclipse has to live within 256 MB, then it may be spending much of its time garbage collecting which appears like swapping (application freezes or slows to a crawl for a while). You might try specifying -Xmx384M as your maximum memory usage to reduce the amount of garbage collecting. Even if you have many large applications running simultaneously, you likely use one program for a while, then switch to another, then after a while switch back. The key here is that using a program for a while and ignoring the others, plus a larger maximum memory for java (like 384 MB) lets Application Developer/Eclipse take advantage of more physical memory and garbage collect less while the other programs are swapped out. Obviously there's a trade off of maximum memory for a program versus the physical memory available... you'll have to find that "sweet spot" somewhere between 256MB and 1GB for your machine.

Posted by '김용환'
,