SlideShare a Scribd company logo
ServerlessConf NYC’17
Profiling & debugging
AWS Lambda
Erica Windisch
CTO, Founder
IOpipe, Inc.
Erica Windisch
CTO & Founder IOpipe, Inc.
Former maintainer of Docker &
OpenStack Building cloud, ops, and
infrastructure tooling for over 15
years.
(Thanks & credit to Katie Bayes!)
Traditional Instrumentation
Kernel
Hardware & Virtualization
Application
Detail
Accuracy
❖ Step-debugging
❖ CPU Profiling
❖ Heap snapshots &

allocation profiles
Kernel
Hardware & Virtualization
Application
Detail
Accuracy
❖ Step-debugging
❖ CPU Profiling
❖ Heap snapshots &

allocation profiles
Virtualization - Valgrind
https://www.cprogramming.com/debugging/valgrind.html
Kernel
Hardware & Virtualization
Application
Detail
Accuracy
❖ Step-debugging
❖ CPU Profiling
❖ Heap snapshots &

allocation profiles
Kernel-level tooling
Linux perf tools
https://github.com/brendangregg/perf-tools
— Brendan Gregg
Almost everything you need to know
about kernel-level performance
tracing & beyond
http://www.brendangregg.com/
Kernel
Hardware & Virtualization
Application
Detail
Accuracy
❖ Step-debugging
❖ CPU Profiling
❖ Heap snapshots &

allocation profiles
ptrace (i.e. gdb, strace, et al)
https://sysdig.com/blog/sysdig-vs-dtrace-vs-strace-a-technical-discussion/
There’s an excessive

number of tools
(and they don’t work on Lambda)
Instrumenting Lambda
Things that don’t work:
Linux eBPF!
$ iosnoop
Tracing block I/O. Ctrl-C to end.
/usr/bin/iosnoop: line 172: cd: /sys/kernel/debug/tracing: Permission denied
ERROR: accessing tracing. Root user? Kernel has FTRACE?
debugfs mounted? (mount -t debugfs debugfs /sys/kernel/debug)
Things that don’t work:
Linux eBPF!
λ$ ls -l /sys
⨯ Error: function response: Command failed: ls -l /sys
ls: cannot access /sys: No such file or directory
Things that don’t work:
Linux perf
Things that don’t work:
Linux perf
λ$ cat /proc/sys/kernel/perf_event_paranoid
2
Kernel-level instrumentation

is out of reach
HW+Virt instrumentation

is (mostly) out of reach.
Application instrumentation

is hard(er) on Lambda
Lambda Limitations
✤ Event-loop is out of our direct control
✤ Process command-line flags inaccessible
✤ Ptrace disabled!
✤ Linux kernel perf features not available on Lambda.
✤ Local dev+test is an evolving story
✤ Many languages, requiring different implementations
✤ Debugger breakpoints in prod aren’t generally viable
Local Debugging

& Instrumentation
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
(Thanks Paul Maddox, Sanath Kumar Ramesh, & AWS!)
Debugging Lambda

in the cloud
github.com/trek10inc/

aws-lambda-debugger
Profiling Lambda

in the cloud
github.com/iopipe/

iopipe-plugin-profiler
https://github.com/node-inspector/v8-profiler
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
(Thanks Pam Selle!)
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe
iopipe.com

More Related Content

PPTX
Embracing Serverless Ops (Lightning Talk)
PDF
Docker in Production at the Aurora Team
PDF
Infrastructure as code
PDF
Functional Programming in Serverless World (Serveless UG Poland)
PPTX
Serverless in-action
PDF
Infrastructure as Code
PDF
Functional Programming in Serverless World
PDF
CI/CD Using Ansible and Jenkins for Infrastructure
Embracing Serverless Ops (Lightning Talk)
Docker in Production at the Aurora Team
Infrastructure as code
Functional Programming in Serverless World (Serveless UG Poland)
Serverless in-action
Infrastructure as Code
Functional Programming in Serverless World
CI/CD Using Ansible and Jenkins for Infrastructure

What's hot (20)

PPTX
Going Serverless with Azure Functions
PPTX
Infrastructure as Code on Azure - NET Conf AR v2018
PDF
Continuous delivery in AWS
PDF
High Available Drupal
PDF
Building cloud native apps with .net core 3.0 and kubernetes
PDF
AWSインフラのコード化にトライしてみて
PDF
Serverless Containers
PPTX
Implementation of the Continuous Integration based on Atlassian Bamboo
PDF
Design Patterns for Docker Applications
PDF
Azure DevOps Multistage YAML Pipelines – Top 10 Features
PDF
Containers and Developer Defined Data Centers - Evan Powell - Keynote in Bang...
PDF
Cloud Foundry Meetup Tokyo #1 Route service
PPTX
IaaS with ARM templates for Azure
PPT
Big Data DC - BenchPress
PPTX
Neil Peterson - Azure CLI Deep Dive
PDF
Leveraging Ansible for CI/CD
PDF
Scaling Your First 1000 Containers with Docker
PPTX
Campus days Azure HDInsight automation
PPTX
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
PDF
Event driven workloads on Kubernetes with KEDA
Going Serverless with Azure Functions
Infrastructure as Code on Azure - NET Conf AR v2018
Continuous delivery in AWS
High Available Drupal
Building cloud native apps with .net core 3.0 and kubernetes
AWSインフラのコード化にトライしてみて
Serverless Containers
Implementation of the Continuous Integration based on Atlassian Bamboo
Design Patterns for Docker Applications
Azure DevOps Multistage YAML Pipelines – Top 10 Features
Containers and Developer Defined Data Centers - Evan Powell - Keynote in Bang...
Cloud Foundry Meetup Tokyo #1 Route service
IaaS with ARM templates for Azure
Big Data DC - BenchPress
Neil Peterson - Azure CLI Deep Dive
Leveraging Ansible for CI/CD
Scaling Your First 1000 Containers with Docker
Campus days Azure HDInsight automation
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
Event driven workloads on Kubernetes with KEDA
Ad

Similar to Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe (20)

PDF
Containing Chaos with Kubernetes - Terrence Ryan, Google - DevOpsDays Tel Avi...
PPTX
NFV Orchestration for Optimal Performance
PDF
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
PDF
DevOps for Databricks
PDF
Can i service this from my raspberry pi
PPTX
Automating Software Development Life Cycle - A DevOps Approach
PPTX
To Build My Own Cloud with Blackjack…
PDF
Quilt - Distributed Load Simulation from AWS
PPT
Virtual Platforms
PPTX
OSDC2014: Testing Server Infrastructure with #serverspec
PDF
StackiFest 16: Stacki Overview- Anoop Rajendra
PDF
Development of a Cisco ACI device package for NGINX as a Load-Balancer
PDF
JUDCon 2010 Boston : BoxGrinder
PDF
OSDC 2014: Andreas Schmidt - Testing server infrastructure with serverspec
PDF
Linux Profiling at Netflix
PDF
What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson...
PPTX
Immutable Server generation: The new App Deployment
PDF
What is Digital Rebar Provision (and how RackN extends)?
PDF
AWS CDK introduction
PPT
Snug2007 Presentation
Containing Chaos with Kubernetes - Terrence Ryan, Google - DevOpsDays Tel Avi...
NFV Orchestration for Optimal Performance
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
DevOps for Databricks
Can i service this from my raspberry pi
Automating Software Development Life Cycle - A DevOps Approach
To Build My Own Cloud with Blackjack…
Quilt - Distributed Load Simulation from AWS
Virtual Platforms
OSDC2014: Testing Server Infrastructure with #serverspec
StackiFest 16: Stacki Overview- Anoop Rajendra
Development of a Cisco ACI device package for NGINX as a Load-Balancer
JUDCon 2010 Boston : BoxGrinder
OSDC 2014: Andreas Schmidt - Testing server infrastructure with serverspec
Linux Profiling at Netflix
What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson...
Immutable Server generation: The new App Deployment
What is Digital Rebar Provision (and how RackN extends)?
AWS CDK introduction
Snug2007 Presentation
Ad

More from Erica Windisch (12)

PDF
Ops for NoOps - Operational Challenges for Serverless Apps
PDF
Building Composable Serverless Apps with IOpipe
PDF
Patterns for Secure Containerized Applications (Docker)
PDF
Orchestrating Docker with OpenStack
PDF
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
PDF
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
PDF
Things will Change - Usenix Keynote UCMS'14
PDF
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
PDF
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
PDF
Provisioning & Deploying with Docker
PDF
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
PDF
Docker OpenStack - 3/27/2014
Ops for NoOps - Operational Challenges for Serverless Apps
Building Composable Serverless Apps with IOpipe
Patterns for Secure Containerized Applications (Docker)
Orchestrating Docker with OpenStack
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
Things will Change - Usenix Keynote UCMS'14
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
Provisioning & Deploying with Docker
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
Docker OpenStack - 3/27/2014

Recently uploaded (20)

PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PPTX
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
AIRLINE PRICE API | FLIGHT API COST |
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
L1 - Introduction to python Backend.pptx
PDF
Digital Strategies for Manufacturing Companies
PPT
Introduction Database Management System for Course Database
PPTX
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PPTX
Presentation of Computer CLASS 2 .pptx
PDF
Become an Agentblazer Champion Challenge Kickoff
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
PPTX
ai tools demonstartion for schools and inter college
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
Materi_Pemrograman_Komputer-Looping.pptx
How Creative Agencies Leverage Project Management Software.pdf
PTS Company Brochure 2025 (1).pdf.......
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
AIRLINE PRICE API | FLIGHT API COST |
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
L1 - Introduction to python Backend.pptx
Digital Strategies for Manufacturing Companies
Introduction Database Management System for Course Database
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
The Role of Automation and AI in EHS Management for Data Centers.pdf
Presentation of Computer CLASS 2 .pptx
Become an Agentblazer Champion Challenge Kickoff
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
ai tools demonstartion for schools and inter college
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia

Debugging & Profiling of AWS Lambda: ServerlessConf - IOpipe