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

Memory exhausted whilst running poller replication #2327

Closed
eschoeller opened this issue Jan 20, 2019 · 7 comments
Closed

Memory exhausted whilst running poller replication #2327

eschoeller opened this issue Jan 20, 2019 · 7 comments
Labels
resolved A fixed issue

Comments

@eschoeller
Copy link

ERROR PHP ERROR: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 256 bytes) in file: /cacti/cacti-prod/lib/database.php on line: 473
CMDPHP PHP ERROR Backtrace:  (CactiShutdownHandler())

This continues over and over again, for poller #2.

@eschoeller
Copy link
Author

I doubled my PHP memory_limit from 1024MB to 2048MB. It was able to get through whatever it needed to do.

@cigamit
Copy link
Member

cigamit commented Jan 21, 2019

See my note on the database upgrade issues for this one.

@cigamit
Copy link
Member

cigamit commented Jan 21, 2019

Put that ini_set in the poller_replicate.php file at the very top.

@cigamit
Copy link
Member

cigamit commented Jan 21, 2019

You may have to put it in poller.php if you are manually doing full sync.

@eschoeller
Copy link
Author

Won't this change get blown away each time I upgrade, or is this a change you're making in the code base as well?

@netniV
Copy link
Member

netniV commented Jan 22, 2019

It may have to become a setting that we allow people to define via the GUI. Especially for larger installations.

@cigamit cigamit changed the title [1.2.1] Poller Replicate Memory Issue Poller Replicate Memory Issue Jan 26, 2019
cigamit added a commit that referenced this issue Jan 26, 2019
Poller Replicate Memory Issue
@cigamit
Copy link
Member

cigamit commented Jan 26, 2019

Updating pollers.php and cli/polller_replicate.php should resolve this issue now.

@cigamit cigamit added the resolved A fixed issue label Jan 26, 2019
@cigamit cigamit closed this as completed Feb 9, 2019
@netniV netniV changed the title Poller Replicate Memory Issue Memory exhausted whilst running poller replication Feb 24, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants