-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
High memory usage #7
Comments
thank you @c0deslinger . The application starts on the background N browsers (chrome). This is memory intensive. When scraping finishes the application does not exit. Although indeed I can confirm that memory usage does not drop smem |grep -w 'google-maps-scraper'
It does not look that any goroutines are still running, but I need to check again the "parent" project scrapemate. Although, this "problem" does not look a blocker. Even with a large number of queries the memory increases but at some point stops increasing. you may try to tune the garbage collector frequency (use the GOGC environment variable). I noticed less memory usage when the GC triggers more often. Also please read this: https://tip.golang.org/doc/gc-guide The section 'A note about virtual memory', but I am not sure if that's the case here. this requires deeper investigation since I didn't notice any obvious issue in code. I will leave the issue open. Maybe someone assists here |
closing issue because of inactivity |
Hi, your code is very good and works well, but when I use it the memory usage goes up quite a lot and when the scraping is finished the memory doesn't come back to normal. Are you sure you closed the goroutines when they were finished?
The text was updated successfully, but these errors were encountered: