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

slimer 1.0.0 leaves a lot of garbage in /tmp #709

Open
andynuss opened this issue Nov 29, 2018 · 1 comment
Open

slimer 1.0.0 leaves a lot of garbage in /tmp #709

andynuss opened this issue Nov 29, 2018 · 1 comment

Comments

@andynuss
Copy link

I am using slimerjs 1.0.0 release version.

My ec2-instance ran out of disk space because there were a lot of big folders in /tmp with the prefix slimerjs and then some random chars in the suffix of the folder name, and these folders had big files in them.

Is there a way to prevent slimerjs from creating this folder on each execution?

@MarkR42
Copy link
Contributor

MarkR42 commented Nov 29, 2018

Yes, you can use the -profile command-line option to tell it to put its mess somewhere else.

If the profile directory doesn't exist, it will be created. If it already exists, it will use the existing profile. Two SlimerJS instances must not run with the same profile at the same time, but you can reuse the profile later, which is especially useful for things like image caching, as SlimerJS might not need to download images if they're in the disc cache.

Also, by default SlimerJS will try to clean up a temporary profile on exit, but only if it exits cleanly.

You could also periodically clean up old files from /tmp, which I would recommend anyway.

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