Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Disable on cli due to memory leaks from long running jobs #19

Closed
jblotus opened this issue Oct 26, 2018 · 1 comment
Closed

Disable on cli due to memory leaks from long running jobs #19

jblotus opened this issue Oct 26, 2018 · 1 comment

Comments

@jblotus
Copy link
Contributor

jblotus commented Oct 26, 2018

Just a quick FYI - we had to disable this from the cli entirely. We were running out of memory due to query/transaction logging from the agent and many of our batch jobs that run using artisan tasks processed thousands of queries.

You can probably close this but in case someone else came across it I wanted to make people ware.

//we do something like this:

'active'        => PHP_SAPI !== 'cli' && env('ELASTIC_APM_ACTIVE', false),
@philkra
Copy link
Owner

philkra commented Nov 6, 2018

thank you for the tip, I added this to a knowledge base of the agent (https://github.com/philkra/elastic-apm-php-agent#disable-agent-for-cli)

@philkra philkra closed this as completed Nov 6, 2018
cykirsch added a commit to cykirsch/elastic-apm-laravel-1 that referenced this issue Feb 13, 2020
Based on philkra/elastic-apm-laravel#19, add config to disable entirely for CLI specifically
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants