I have noticed that Glassfish v 3.0.1 on Linux appears to hold 318 open file descriptors to all 318 bundle.jar in osgi-cache/felix/... In other words, felix keeps an open file descriptor to all 318 bundles.
Is that a bug or a feature?
It seems like a bug in my oppinion. OSGI is like synonym for modularization. And the environment should not cache all regularly, if it doesn't need all.
Thanks. By the way, it seems that Glassfish holds many more open file descriptors, for example *all* JAR libraries.
On Ubuntu, do ls -l /proc/<pid>/fd where <pid> is the PID of the Java process.
Is Glassfish really holding all these 719 files open? (Or have I misunderstood something?)
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.