<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1223908" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Emzy">@Emzy</a> suggestion: Create a file opcache-status.php under docroot:</p>
<pre><code><?php
echo "\n" . date('c') . "\n"; print_r( opcache_get_status() );
</code></pre>
<p>then make a crontab entry every 10 minutes with this command:</p>
<pre><code>wget --output-document=/tmp/opcache-fetch.log random/opcache-status.php && cat /tmp/opcache-fetch.log >> /tmp/opcache-status.log
</code></pre>
<p>This will create a timestamped log file with detailed info about opcache memory usage.  It should stabilize after initial cache warmup period.   If mem use keeps increasing forever or cache_full becomes true, that's a problem.</p>
<p>Also, here's some info re opcache settings:  <a href="https://www.saotn.org/optimize-php-opcache-configuration/" rel="nofollow">https://www.saotn.org/optimize-php-opcache-configuration/</a></p>
<p>This is what a log entry should look like:</p>
<pre><code>2019-07-17T08:14:03-07:00
Array
(
    [opcache_enabled] => 1
    [cache_full] => 
    [restart_pending] => 
    [restart_in_progress] => 
    [memory_usage] => Array
        (
            [used_memory] => 9133184
            [free_memory] => 57974864
            [wasted_memory] => 816
            [current_wasted_percentage] => 0.001215934753418
        )

    [interned_strings_usage] => Array
        (
            [buffer_size] => 4194304
            [used_memory] => 200904
            [free_memory] => 3993400
            [number_of_strings] => 4790
        )

    [opcache_statistics] => Array
        (
            [num_cached_scripts] => 1
            [num_cached_keys] => 1
            [max_cached_keys] => 3907
            [hits] => 5
            [start_time] => 1559147469
            [last_restart_time] => 0
            [oom_restarts] => 0
            [hash_restarts] => 0
            [manual_restarts] => 0
            [misses] => 2
            [blacklist_misses] => 0
            [blacklist_miss_ratio] => 0
            [opcache_hit_rate] => 71.428571428571
        )

    [scripts] => Array
        (
            [/home/websites/random/opcache-status.php] => Array
                (
                    [full_path] => /home/websites/random/opcache-status.php
                    [hits] => 0
                    [memory_consumption] => 1056
                    [last_used] => Wed Jul 17 08:14:03 2019
                    [last_used_timestamp] => 1563376443
                    [timestamp] => 1563376433
                )

        )

)
</code></pre>
<p>Also, as a bandaid, you might want to automate a graceful apache restart every 12 hours or so.  But it would be good to generate this logfile first to see if anything bad happens with cache usage around the time that mem fills up.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq-markets/issues/19?email_source=notifications&email_token=AJFFTNRPAJYWNW6CLYKYS4DP7425FA5CNFSM4IEMATF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EYTMY#issuecomment-512330163">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNRKM4QQL22GVG6GM6DP7425FANCNFSM4IEMATFQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNUUNOREGJVCTDW7JETP7425FA5CNFSM4IEMATF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EYTMY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq-markets/issues/19?email_source=notifications\u0026email_token=AJFFTNRPAJYWNW6CLYKYS4DP7425FA5CNFSM4IEMATF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EYTMY#issuecomment-512330163",
"url": "https://github.com/bisq-network/bisq-markets/issues/19?email_source=notifications\u0026email_token=AJFFTNRPAJYWNW6CLYKYS4DP7425FA5CNFSM4IEMATF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EYTMY#issuecomment-512330163",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>