Skip to content

Instantly share code, notes, and snippets.

@jkndrkn
jkndrkn / gist:946664
Created April 28, 2011 16:11
ops@leadtune.com New Relic Issues
# 1
require 'newrelic_rpm'
require 'new_relic/agent/method_tracer'
class PayloadRanker
def initialize(payload)
@payload = payload
NewRelic::Agent.manual_start :agent_enabled => true
ObjectSpace.define_finalizer(self, proc {|_| NewRelic::Agent.shutdown})
@jkndrkn
jkndrkn / gist:946722
Created April 28, 2011 16:44
ops@leadtune.com newrelic_agent.log
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Dispatcher: passenger
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Application: Market (Staging)
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Connecting workers after forking.
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : New Relic RPM Agent 2.14.1 Initialized: pid = 14623
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Agent Log found in /var/www/market_staging/releases/20110428160745/log/newrelic_agent.log
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation file '/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb'
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation file '/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb'
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation
before_fork do
logger.formatter = Logger::Formatter.new
logger.info "Loading application..."
require(root_path + 'config/environment.rb')
Dir.chdir(RAILS_ROOT)
logger.info "Loading brain for DecisionPoint 'Insti', 'LMP'..."
Appraiser["LMP_Insti"]
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : No dispatcher detected.
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Application: Market (Staging)
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connecting Process to RPM: /var/www/market_staging/shared/vendor/ruby/1.8/bin/queue_map_consumer
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector.newrelic.com to 204.93.223.153
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/get_redirect_host
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Http Connection opened to 204.93.223.153:80
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Uncompressed content returned
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector-4.newrelic.com to 204.93.223.138
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector-4.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/connect
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : No dispatcher detected.
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Application: Market (Staging)
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connecting Process to RPM: /var/www/market_staging/shared/vendor/ruby/1.8/bin/queue_map_consumer
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector.newrelic.com to 204.93.223.153
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/get_redirect_host
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Http Connection opened to 204.93.223.153:80
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Uncompressed content returned
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector-4.newrelic.com to 204.93.223.138
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector-4.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/connect
@jkndrkn
jkndrkn / gist:4f488a59c94aa541c22a7bfa4104a9bb
Created July 12, 2017 00:39
SooperLooper macOS Sierra Debugging
# ping -c 2 localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.091 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.106 ms
--- localhost ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.091/0.099/0.106/0.007 ms
# ifconfig
@jkndrkn
jkndrkn / gist:e352c5253d5cb0d960b7ba05fd21ce37
Created July 12, 2017 01:09
MainStage Kernel Panic: 2017-07-11 (1)
Anonymous UUID: CD22FDCD-2DC6-A288-C464-0086F3929DE7
Tue Jul 11 21:05:18 2017
*** Panic Report ***
panic(cpu 0 caller 0xffffff80293ffe35): "Double fault at 0xffffff7fabe83695, registers:\n" "CR0: 0x000000008001003b, CR2: 0xffffff9159b07ff8, CR3: 0x0000000145c3502f, CR4: 0x00000000000626e0\n" "RAX: 0x7fffffffffffffff, RBX: 0xffffff80414404f0, RCX: 0xffffff80418b2500, RDX: 0xffffff9159b0808f\n" "RSP: 0xffffff9159b08000, RBP: 0xffffff9159b08020, RSI: 0xffffff80414404f0, RDI: 0xffffff804047a000\n" "R8: 0x0000000000000000, R9: 0x0000000002104d00, R10: 0xffffff804047a000, R11: 0x0000000000000000\n" "R12: 0xffffff7fabe88b01, R13: 0xffffff804047a000, R14: 0x0000000000000002, R15: 0xffffff803cb55000\n" "RFL: 0x0000000000010093, RIP: 0xffffff7fabe83695, CS: 0x0000000000000008, SS: 0x0000000000000010\n" "Error code: 0x0000000000000000\n"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3789.60.24/osfmk/i386/trap_native.c:168
Backtrace (CPU 0), Frame : Return Address
0xffffff810b0b0cf0 : 0xffffff80292ea53c
0xff
credentials: true
headers: accept, authorization, content-type, origin, referer, x-csrf-token
methods: GET, PUT, POST, HEAD, DELETE, OPTIONS
origins: *