Giter Site home page Giter Site logo

Too many files open about ossim HOT 11 CLOSED

ossimlabs avatar ossimlabs commented on June 8, 2024
Too many files open

from ossim.

Comments (11)

omarossim avatar omarossim commented on June 8, 2024

from ossim.

ghansham avatar ghansham commented on June 8, 2024

Thanks. I will try the suggested solution.

from ossim.

ghansham avatar ghansham commented on June 8, 2024

This worked. Actually issue was coming because ossim elevation manager threads were enabled. By default it was using 32 threads. Another observation is that same file was opened by multiple ossim elevation database instances. Is that fine?
Another suggestion was while loading the default paths for elevation, it should check existence of those paths before instantiating the relevant classes.

from ossim.

omarossim avatar omarossim commented on June 8, 2024

from ossim.

omarossim avatar omarossim commented on June 8, 2024

from ossim.

omarossim avatar omarossim commented on June 8, 2024

from ossim.

ghansham avatar ghansham commented on June 8, 2024

In the loadStandardElevationPaths method in ElevManager class, the loadElevationPath method is called for userPath and installPath without checking for their existence. It checks for existence after calling open on the path. That open is even is also not required. See line number 214 in loadElevationPath. The path existence should be checked within loadStandardElevationPaths. That may do away with with open function call which is not required if path does not exist.

from ossim.

ghansham avatar ghansham commented on June 8, 2024

Regarding sharing of elevation managers, if the cells are mapped to memory, they can be shared, that can reduce the memory foot print. Am I correct?

from ossim.

ghansham avatar ghansham commented on June 8, 2024

I think loadElevationPath should have existence check before calling open because this method might be getting called from multiple places other than loadStandardElevationPaths.

Regards
Ghansham

from ossim.

gpotts avatar gpotts commented on June 8, 2024

from ossim.

ghansham avatar ghansham commented on June 8, 2024

Ok. I agree. Yeah its only during initialization. Idea too was to speed up the startup time only.

from ossim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.