简体   繁体   中英

disable osgi temp folder

I have a problem with the temporary folders that are generated when I run "Run OSGi" from the start.bndrun file in eclipse at each start a folder is generated below: C:\\Users\\\\AppData\\Local\\Temp\\osgi.7569853241152546985.fw which weigh about 300mb.

OS:Win 10 IDE: Eclipse 2018-09 Tools: Bndtools 4.1.0 REL

start.bndrun

-runsystemcapabilities: ${native_capability}
-runfw: org.eclipse.osgi;version='[3.12.50.v20170928-1321,3.12.50.v20170928-1321]'
-runee: JavaSE-1.8
-resolve.effective: active;skip:="osgi.service"
-runsystempackages: sun.misc,com.sun.xml.internal.ws.developer,com.sun.xml.internal.ws,com.sun.xml.internal.ws.api.message
-runproperties: \
    osgi.console=,\
    osgi.console.enable.builtin=false,\
    org.osgi.framework.bootdelegation="sun.*,com.sun.*",\
    org.osgi.service.http.port=8081,\

-runvm:-Xss1M, -Xms128M, -Xmx1G

-runbundles: \
    ...

the problem is that after a month I find about 70GB occupied on the disk, which I have to delete periodically. is there a way to limit these temporary folders?

我是这样解决的:进入bndrun文件:-runstorage:${user.home}/osgi/data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM