Skip to content

Commit

Permalink
Merge pull request #50 from cleverage/47
Browse files Browse the repository at this point in the history
#47 Add Troubleshooting section on documentation
  • Loading branch information
njoubert-cleverage authored Feb 24, 2025
2 parents 2303b33 + 41451d8 commit 501b2cd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ See more details about ***messenger:consume*** command in consume message sectio
## Consume Messages
Symfony messenger is used in order to run process via UI or schedule process

*To consume process launched via UI make sure the following command is running*
* To consume process launched via UI make sure the following command is running*
```bash
bin/console messenger:consume execute_process
```

*To consume scheduled process make sure the following command is running*
* To consume scheduled process make sure the following command is running*
```bash
bin/console messenger:consume scheduler_cron
```
Expand Down Expand Up @@ -144,6 +144,17 @@ killasgroup=true
stopasgroup=true
```
## Troubleshooting
### PHP Fatal error: Allowed memory size of xxx bytes exhausted
When `store_in_database` option is set, with lower value of `database_level` option, the process may generate many LogRecord.
On debug environment, profiling too much queries cause memory exhaustion. So, you can :
- Set `doctrine.dbal.profiling_collect_backtrace: false`
- Increase `memory_limit` in php.ini
- Set `clever_age_ui_process.logs.store_in_database: false` or improve value of `clever_age_ui_process.logs.database_level`
- Use `--no-debug` flag for `cleverage:process:execute`
## Reference
_TODO_

0 comments on commit 501b2cd

Please sign in to comment.