-
Notifications
You must be signed in to change notification settings - Fork 28
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
Max memory and restart windows server #121
Comments
https://github.com/PhamHuyThien/investing-com-api-v2 I forked the project and upgraded to version V2.0 |
Hello, can you elaborate more how did you fix your problem, for future users? Is there a memory leak in my repo? |
Hello author, Not receiving a response from you, I think I have to solve this problem myself. Use my version 2 or upgrade your project, better experience. End :) |
Hi everyone, i was wondering if puppeteer is really necessary. I forked this repo and replaced puppeteer with fetch. It's seems works very well and the performance are better. Here my PR: #141 BenchmarkCodeconst run = async () => {
const iterations = 10
const responsesTime = []
for (let index = 0; index < iterations; index++) {
const start = new Date()
await investing('1')
responsesTime.push(new Date() - start)
console.log(`run ${index + 1}: ${responsesTime[index]}ms`)
}
const avg = responsesTime.reduce((acc, responseTime) => acc + responseTime, 0) / responsesTime.length
console.log(`avg: ${avg}ms`)
} ResultsWith puppeteerrun 1: 1132ms With fetchrun 1: 371ms |
Hello I am currently having some major problems using it
After starting the system for about 1 hour - 2 hours, RAM usage suddenly increases to 90% and restarts the server
Currently, I have used PM2 and rebooted every hour but the RAM is still at 90%.
My device configuration:
Windows server 2016
RAM: 16GB
CPU: 8 cores
400GB SSD
my source:
Looking forward to receiving comments.
The text was updated successfully, but these errors were encountered: