[bisq-network/bisq-markets] https://markets.bisq.network/ is often down those last days (#19)

dan-da notifications at github.com
Wed Jul 17 15:27:14 UTC 2019


@Emzy suggestion: Create a file opcache-status.php under docroot:
```
<?php
echo "\n" . date('c') . "\n"; print_r( opcache_get_status() );
```    

then make a crontab entry every 10 minutes with this command:
```
wget --output-document=/tmp/opcache-fetch.log random/opcache-status.php && cat /tmp/opcache-fetch.log >> /tmp/opcache-status.log
```

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. 

Also, here's some info re opcache settings:  https://www.saotn.org/optimize-php-opcache-configuration/

This is what a log entry should look like:

```
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
                )

        )

)
```

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.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-markets/issues/19#issuecomment-512330163
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190717/b922b1b9/attachment.html>


More information about the bisq-github mailing list