Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory/Thread leak? #117

Open
ferbeb opened this issue Jun 7, 2015 · 2 comments
Open

Memory/Thread leak? #117

ferbeb opened this issue Jun 7, 2015 · 2 comments

Comments

@ferbeb
Copy link

ferbeb commented Jun 7, 2015

trireme_stack

I'm sorry if this isn't the right place to ask, but am I missing to close some resources?
I can get the Async Pools to stop stacking, but apparently the Script threads won't stop.

@gbrail
Copy link
Contributor

gbrail commented Jun 8, 2015

The "Trireme Script Thread" will keep running until the script exits.
Scripts in Trireme are just like scripts in regular node, so any open HTTP
server, socket, or timer will keep the script running unless you explicitly
close it or call "process.exit."

If you want to stop your script from Java code, you can also call "cancel"
on the ScriptFuture that is returned by NodeScript.execute().

On Sun, Jun 7, 2015 at 9:51 AM, Benjamin [email protected] wrote:

[image: trireme_stack]
https://cloud.githubusercontent.com/assets/5007493/8024943/5b5c3d72-0d45-11e5-940e-a9bfce262c6f.PNG

I'm sorry if this isn't the right place to ask, but am I missing to close
some resources?
I can get the Async Pools to stop stacking, but apparently the Script
threads won't stop.


Reply to this email directly or view it on GitHub
#117.

Greg Brail | apigee https://apigee.com/ | twitter @gbrail
http://twitter.com/gbrail @apigee https://twitter.com/apigee
http://iloveapis.com/

@gbrail
Copy link
Contributor

gbrail commented Aug 14, 2015

Did cancelling the script resolve this for you? If so then I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants