Possible to move the tmp directory of Eclipse?

2019-04-07 18:54发布

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.

1条回答
看我几分像从前
2楼-- · 2019-04-07 19:35

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.

查看更多
登录 后发表回答