Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to move the tmp directory of Eclipse?

I'm trying to speed up Eclipse by having my projects on a RAM disk (stuck with a slow laptop and a heavy kind of eclipse project at the moment). Worked great for loading the project and such, but when I'm building it seems to read and write a lot to a directory in %APPDATA% (seems to have a generated name from the name of the project). This makes it actually go slower than usual...

So... is there a way I can move the tmp directory of eclipse? Preferably without moving the tmp directory of other applications in the process.

like image 816
Svish Avatar asked Apr 26 '12 07:04

Svish


People also ask

How do I change my tmp location?

Create a folder named "Temp" where you want the new folder to be located,(if you haven't already done so). Click on "Temp" Variable and click "Edit...". Enter new Variable Value (the location of your new folder; e.g "C:\Temp") and Click OK. Select "TMP" Variable and change it's value to the same folder).

What does the tmp directory do?

Web servers have a directory named /tmp used to store temporary files. Many programs use this /tmp directory for writing temporary data and generally remove the data when it is no longer needed. Otherwise the /tmp directory is cleared when the server restarts.

How do I create a folder in tmp?

To create new directory use "mkdir" command. For example, to create directory TMP in the current directory issue either "mkdir TMP" or "mkdir ./TMP". It's a good practice to organize files by creating directories and putting files inside of them instead of having all files in one directory.


1 Answers

May have found a way by setting a property called java.io.tmpdir in eclipse.ini. Seems to have changed where most of the read/write activity happens during build at least. For example:

-vmargs
-Xms128m
-Xmx1024m
-XX:MaxPermSize=256M
-Djava.io.tmpdir=E:\tmp

Not sure if it have to be after the -vmargs thing or not, but this seems to work anyways.

like image 95
Svish Avatar answered Oct 13 '22 20:10

Svish