Welcome Guest, Not a member yet? Register   Sign In
Memory consumption bug
#2

By default in development mode, each query object is saved for displaying in the debug bar, etc.

Can you check app/Config/Toolbar.php? There should be a setting, $maxQueries in there that determines the maximum number of queries that are saved. If this is something that you've been using for a bit and upgrading through the releases, that setting might have gotten missed putting in, so you should add it:

Code:
/*
    |--------------------------------------------------------------------------
    | Max Queries
    |--------------------------------------------------------------------------
    | If the Database Collector is enabled, it will log every query that the
    | the system generates so they can be displayed on the toolbar's timeline
    | and in the query log. This can lead to memory issues in some instances
    | with hundreds of queries.
    |
    | $maxQueries defines the maximum amount of queries that will be stored.
    |
    */
    public $maxQueries = 100;

If the data from your CSV rows is rather large than you might just need to lower that value.
Reply


Messages In This Thread
Memory consumption bug - by MGatner - 03-01-2019, 09:50 AM
RE: Memory consumption bug - by kilishan - 03-01-2019, 01:32 PM
RE: Memory consumption bug - by MGatner - 03-04-2019, 11:49 AM
RE: Memory consumption bug - by MGatner - 03-05-2019, 02:29 PM
RE: Memory consumption bug - by John_Betong - 03-05-2019, 04:17 PM
RE: Memory consumption bug - by kilishan - 03-05-2019, 04:42 PM
RE: Memory consumption bug - by John_Betong - 03-05-2019, 04:49 PM
RE: Memory consumption bug - by MGatner - 03-06-2019, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB