我在 eclipse 中从 start.bndrun 文件运行“运行 OSGi”时生成的临时文件夹有问题 每次启动时都会在下面生成一个文件夹: C:\Users\\AppData\Local\Temp\osgi.7569853241152546985.fw 重约 300mb。
操作系统:Win 10 集成开发环境:Eclipse 2018-09 工具:Bndtools 4.1.0 REL
启动.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: \
...
问题是一个月后我发现磁盘上占用了大约 70GB,我必须定期删除这些空间。有没有办法限制这些临时文件夹?
最佳答案
我是这样解决的:进入 bndrun 文件:-runstorage: ${user.home}/osgi/data
关于java - 禁用 osgi 临时文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54517418/