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

nodejs process keeps running after cdk command exits #4604

Closed
trondhindenes opened this issue Aug 11, 2024 · 4 comments
Closed

nodejs process keeps running after cdk command exits #4604

trondhindenes opened this issue Aug 11, 2024 · 4 comments
Labels

Comments

@trondhindenes
Copy link

Describe the bug

when running a cdk command such as "cdk ls", I can see two nodejs process starting:

node /usr/bin/cdk ls
node --max-old-space-size=4069 /tmp/tmpl2de_imf/bin/jsii-runtime.js

When the cdk command exits, the last of these is still running. This process has significant cpu usage, and should not be left "unmanaged". It looks like everytime I run a new cdk command, one more of these processes are spawned and not cleaned up, ultimately leading to system crash on my computer

Expected Behavior

all cdk-related nodejs processes should exit after the cdk command completes

Current Behavior

a rogue nodejs process is left behind.

Reproduction Steps

Hard to say. This certainly doesn't happen on all of our cdk apps, but it is consistent on one of them, which is a fairly large cdk app with lots of resources and sub-stacks

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.151.0 (build b8289e2)

Framework Version

No response

Node.js Version

v20.13.1

OS

Ubuntu 24

Language

Python

Language Version

Python 3.11

Other information

No response

@trondhindenes trondhindenes added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 11, 2024
@pahud
Copy link
Contributor

pahud commented Aug 13, 2024

Hard to say. This certainly doesn't happen on all of our cdk apps, but it is consistent on one of them, which is a fairly large cdk app with lots of resources and sub-stacks

I can't reproduce this in my CDK in Python app but this is probably due to the size of my CDK app.

I will bring this up to the team for inputs.

@pahud pahud added p2 jsii and removed needs-triage This issue or PR still needs to be triaged. labels Aug 13, 2024
@pahud pahud transferred this issue from aws/aws-cdk Aug 13, 2024
@trondhindenes
Copy link
Author

thanks! I can try and slowly add complexity to an example cdk app to see if I can determine when it happens.

@trondhindenes
Copy link
Author

not able to repro this on another computer, so closing.

Copy link
Contributor

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

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

No branches or pull requests

2 participants