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

Windows command prompt out of memory and shuts down on Windows 10 #5

Open
timocouckuyt opened this issue Apr 26, 2018 · 3 comments
Open

Comments

@timocouckuyt
Copy link

Hi guys,

It's not really a coding issue, but I thought it would be good to try to find people who might have had the same issue and post it here.

As a test case, I tried to migrate a Gmail box with more than 50K emails over to another IMAP test box, everything runs smoothly, except the Windows CMD prompt itself. Every few hundred emails onwards, it crashes. I then rerun imapcopy with startFolderNum and startFolderMessageNum provided but it keeps on crashing every few hundred emails onwards. I'm guessing the Windows CMD prompt can't really handle of the output. Would there be a (quick) way of disabling this but still see an indication of where the script's at and what went OK or gave an error? I was thinking about writing the output to a file as a fix.

Thoughts?

// T

@timocouckuyt
Copy link
Author

UPDATE: Logging to a file triggers the same crashing problem. What's strange tho is the crash happens on the same numbers of emails and folders. Perhaps a buffer issue?

@simialbi
Copy link
Contributor

simialbi commented Apr 27, 2018

I think you gave the explanation yourself (Windows command prompt out of memory and shuts down on Windows 10).
What does your php.ini looks like? Maybe you have to disable memory_limit on cli or at least increase it.

@jozefp83
Copy link

jozefp83 commented May 1, 2018

I have a similar problem, I'm running php cli in virtual environment; the script fill the memory of system, after it's killed.
I think it's some issue with unseting memory somewhere in script; or maybe in imap class ...

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

3 participants