Giter Club home page Giter Club logo

Comments (3)

jeffpeiyt avatar jeffpeiyt commented on May 28, 2024

@sebastianthelen thanks so much for trying Parallec. As mentioned in the javadoc please not to call this releaseExternalResources() until you stop using Parallec.

If you are on some web server (such as Tomcat) and runs parallec jobs as cron jobs. We do not need to call this line at all. We have several production application that runs as web server. We do not call it in our app.

The actor system and the threadpools are live so that it will keep reusing the same one. The resources used are not significant either. Feel free to use tools such as VirtualVM to track the heap usage etc.

releaseExternalResources
public void releaseExternalResources()
Releases the external resources that this object depends on. You should not call this method if you still want to use the external resources (e.g. akka system, async http client store, thread pool for SSH/TCP) are in use by other objects.

from parallec.

sebastianthelen avatar sebastianthelen commented on May 28, 2024

@jeffpeiyt thanks for your prompt reply.

If you are on some web server (such as Tomcat) and runs parallec jobs as cron jobs. We do not need to call this line at all.

That's exactly what we were not sure of. We have read the javadocs for releaseExternalResources() but were not sure if this also applies in the web server scenario.

The actor system and the threadpools are live so that it will keep reusing the same one.

Understood. We also tracked the heap usage with VirtualVM and everything looked ok.

Again, thanks for clarifying.

from parallec.

jeffpeiyt avatar jeffpeiyt commented on May 28, 2024

@sebastianthelen Glad that it helped. Thanks for your questions, we will enhance the doc on this. Guess other people will have similar questions.

from parallec.

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.