Início > JAVA > Performance Tip for Eclipse/RAD/RSA

Performance Tip for Eclipse/RAD/RSA

A simple thing that we can do in order to have a Faster Eclipse its move our Java installation from Hard Disk to RAM (memory). In order to do this you should install Squash. Here is the steps that I follow for Ubuntu Linux, you can use to research about and do it, please, remember to change to your folders:

  • mkdir /media/ramdisk
  • mount -t tmpfs tmpfs /media/ramdisk
  • Add the following line to /etc/fstab

tmpfs /media/ramdisk tmpfs defaults,mode=1777 0 0

  • Reboot

Using the command “df -h” you should see the disk.

  • Install squashfs
    apt-get install squashfs-tools
  • Create .sqsh file
    mksquashfs /opt/java /home/julianom/jdk.sqsh
  • This is just to test, mount and see if Java is present at the folder:

mount /home/julianom/jdk.sqsh /media/ramdisk -t squashfs -o loop

  • Edit fstab – add more this lines (remember, use your own folder, change julianom)
    /home/julianom/jdk.sqsh /media/ramdisk squashfs ro,defaults,loop 0 0
  • update alternatives
    update-alternatives –install “/usr/bin/java” “java” “/media/ramdisk/bin/java” 1

There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
0 /usr/lib/j2re1.7-ibm/jre/bin/java 1200 auto mode
* 1 /media/ramdisk/bin/java 1 manual mode
2 /usr/lib/j2re1.7-ibm/jre/bin/java 1200 manual mode
3 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode

Do not forget to change your Eclipse/RSA to run with the JRE from this place.


Categorias:JAVA Tags:, , ,
  1. Nenhum comentário ainda.
  1. No trackbacks yet.

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do

Você está comentando utilizando sua conta Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s

%d blogueiros gostam disto: