| Summary: | Numerous outdated bundledata/configuration files created in equinox stack | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Thomas Watson <tjwatson> |
| Component: | Framework | Assignee: | Thomas Watson <tjwatson> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | alagreia, liukl, mfhsu, rogalski, tjwatson, tomhsu, xhhsld |
| Version: | 3.4 | Keywords: | helpwanted |
| Target Milestone: | 3.7.1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 259981 | ||
| Bug Blocks: | |||
|
Description
Thomas Watson
Fix committed to 3.7.1 with: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?h=R3_7_maintenance&id=b3075dd5c8ce66d53143bb6faab4866a4aedff2a Actually there were two commits to fix this. The original fix which was using the old cleanupOnOpen was made with this commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?h=R3_7_maintenance&id=be645b485ea5d3de1cb3a2c41b5704f2edcc5665 The fix to start using the new cleanupOnSave was made with this commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?h=R3_7_maintenance&id=b3075dd5c8ce66d53143bb6faab4866a4aedff2a Hi, I tried this fix in the latest eclipse download (3.7.1) and I still see this issue. I tried this on windows 32bit. We have OSGI runtime as part of our server and many bundles( around 500) are installed in it. After every 30 seconds( I think ), if there is a install or uninstall of a bundle, a temporary file is created which is 2MB size. Can you please let us know if this fix actually went to 3.7.1 ? (In reply to comment #3) > Can you please let us know if this fix actually went to 3.7.1 ? Yes it should be fixed in 3.7.1. Can you confirm that you are setting the configuration option osgi.embedded.cleanupOnSave=true I thought "osgi.embedded.cleanupOnSave" option was meant for cleanup during shutdown of osgi runtime. We would like to have a solution that does not create these temp files during the time the servers are up and running. These servers would be running for months without shutdown. Anyway, I tried with the option you had specified and I still see this issue. The temporary files keeps on getting generated when the osgi runtime is up and running. Thanks very much for looking into this. -Vikram I thought "osgi.embedded.cleanupOnSave" option was meant for cleanup during shutdown of osgi runtime. We would like to have a solution that does not create these temp files during the time the servers are up and running. These servers would be running for months without shutdown. Anyway, I tried with the option you had specified and I still see this issue. The temporary files keeps on getting generated when the osgi runtime is up and running. Thanks very much for looking into this. -Vikram (In reply to comment #6) > I thought "osgi.embedded.cleanupOnSave" option was meant for cleanup during > shutdown of osgi runtime. > No it is used to clean up when saving the latest state while the framework is running. I tested this again on 3.7.1. I used the following command to test: java -Declipse.stateSaveDelayInterval=1000 -Dosgi.embedded.cleanupOnSave=true -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -console Then I install and uninstall the same bundle using the osgi> console. I see new .state, .lazy and .bundledata files get created and the old ones get deleted each time I install and uninstall the bundle. (In reply to comment #3) > We have OSGI runtime as part of our server and many bundles( around 500) are > installed in it. After every 30 seconds( I think ), if there is a install or > uninstall of a bundle, a temporary file is created which is 2MB size. > Which temporary file are we talking about. Perhaps this is a different file, not covered by this bug fix. I had used "osgi.embedded.cleanupOnOpen" instead of "osgi.embedded.cleanupOnSave" before. With the correct option I see it working now. All the temporary files are properly deleted. Thanks |