-
Added the following to
/usr/local/lib/strangecode_php_memory_log.php
<?php function strangecode_php_memory_log() { $current = memory_get_usage() / 1024 / 1024; $peak = memory_get_peak_usage() / 1024 / 1024;
$uri = $_SERVER['REQUEST_URI'] ?? 'n/a';
https://gist.github.com/search?q=user%3Amttjohnson+gist
user:mttjohnson gist
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost