Skip to main content

218 file descriptors to felix bundles

2 replies [Last post]
tmpsa
Offline
Joined: 2010-02-01
Points: 0

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?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
javazz
Offline
Joined: 2011-01-11
Points: 0

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.
Sincerely javazz

tmpsa
Offline
Joined: 2010-02-01
Points: 0

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?)