On 11/10/10 6:58, Jackson, Bruce wrote:
Hi
Does anyone know: is there a way of controlling or reducing the heap usage of
the class org.apache.felix.framework.util.JarFileX in Felix 2.0.5?
Alternatively: does anyone know if this has been made more efficient in 3?
That class is a simple extension to JarFile to work around a bug for
improper handling of directory entries. I find it hard to believe that
it could be causing any significant heap usage since it maintains no
state. I think you are just seeing the heap being used by JarFile itself.
If I recall, I think the memory issues stem from JarFile's manifest
parsing. I actually wrote some code to do the parsing myself and it did
appear to help memory usage, but not performance. Since I was looking
for performance improvement, I didn't continue with it.
If you wanted to test the impact to see if it is worthwhile, I could
look into it again. If so, open a JIRA issue and we can try to work
together on it.
-> richard
Thanks
Bruce