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
Chrome process memory is increasing with long running NewRemoteAllocator with periodic Evaluate (js) #1046
Comments
Two things to check based on the current information:
Lines 15 to 37 in b88710e
|
Hello again, But res was made an *runtime.RemoteObject (even though i know it is a string) and i freed it with your suggested runtime.ReleaseObject(res.ObjectID) and this actually seems to keep the memory stable after lots of eval execs. So i would say this is the way to go for a long running instance with evals (if that make sense, atleast it seems to work in this case). |
@lundin Thanks for the feedback! If you know that it is a string, maybe you should use a Note: when the type of the variable is |
Hi,
I have a question for best practice with running a single chrome instance with one tab. First i do chromedp.Run and navigate to a website (that creates a browser/tab). Then i have a message subscriber with nats,.io that can get incoming messages. This subscriber do a chromedp.Evaluate (i think this chromedp.Run is running in the same tab) and send back the output of the js/evaluate. However i can see that the chrome process using top is increasing until it crash. Is this expected that running many console/js in same tab is increasing memory ?
What versions are you running?
What did you do? Include clear steps.
What did you expect to see?
More or less stable memory ?
What did you see instead?
Increasing memory
The text was updated successfully, but these errors were encountered: