[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[smila-dev] FW: [eclipse.org-committers] Performance Blooper: Not closing zip and jar files
|
Kind regards
Thomas Menzel @ brox IT-Solutions
GmbH
From: eclipse.org-committers-bounces@xxxxxxxxxxx
[mailto:eclipse.org-committers-bounces@xxxxxxxxxxx] On Behalf Of John
Arthorne
Sent: Montag, 24. November 2008 17:45
To: eclipse.org-committers@xxxxxxxxxxx
Subject: [eclipse.org-committers] Performance Blooper: Not closing zip
and jar files
It was recently
brought to our attention in Equinox that closing zip and jar files doesn't
close the corresponding streams as specified in the API javadoc. This can
result in memory leaks if you don't explicitly close all streams in addition to
closing the zip/jar file. Since this is a subtle bug with potentially drastic
effects, I thought it worth broadcasting to the Eclipse committer community.
You should review your usage of java.util.zip.ZipFile and java.util.jar.JarFile
to see if this affects your component. See more details on the Performance
Bloopers wiki:
http://wiki.eclipse.org/Performance_Bloopers
This is a good
opportunity to remind everyone about the bloopers page, since it lists many
examples we can all learn from to avoid repeating the same performance
mistakes. If you have your own Eclipse performance blooper cases to
share, please add them to that wiki page, or enter a bug against Eclipse >
Platform > Website with your suggestions. There is also a general Eclipse
performance wiki page, where you can add links to additional
performance-related tools and sources:
http://wiki.eclipse.org/Performance
Thanks to
contributor Gary Karasiuk for bringing this to our attention (bug 255954).
John
|
_______________________________________________
eclipse.org-committers mailing list
eclipse.org-committers@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse.org-committers
IMPORTANT: Membership in this list is generated by processes internal to the Eclipse Foundation. To be permanently removed from this list, you must contact emo@xxxxxxxxxxx to request removal.