Skip to content

Instantly share code, notes, and snippets.

@prune998
Created November 5, 2019 20:39
Show Gist options
  • Save prune998/2197b9691972172e74ab2fdfefa2c223 to your computer and use it in GitHub Desktop.
Save prune998/2197b9691972172e74ab2fdfefa2c223 to your computer and use it in GitHub Desktop.
pprof --text --base=profile.0001.heap -alloc_objects envoy profile.0384.heap
File: envoy
Type: alloc_objects
Showing nodes accounting for 57222349, 91.39% of 62614372 total
Dropped 1104 nodes (cum <= 313071)
flat flat% sum% cum cum%
12356596 19.73% 19.73% 12356598 19.73% Envoy::Buffer::OwnedImpl::reserve
12113551 19.35% 39.08% 12113553 19.35% Envoy::Buffer::OwnedImpl::add
4972669 7.94% 47.02% 4972669 7.94% std::__1::basic_string::append
4828047 7.71% 54.73% 4828047 7.71% std::__1::basic_string::basic_string
3334994 5.33% 60.06% 3334994 5.33% OPENSSL_malloc
2959667 4.73% 64.79% 3438091 5.49% google::protobuf::Map::InnerMap::insert
2950080 4.71% 69.50% 2950080 4.71% hist_accumulate
2136089 3.41% 72.91% 11064053 17.67% std::__1::__function::__func::operator()
1688934 2.70% 75.61% 1809901 2.89% std::__1::__hash_table::__emplace_unique_key_args
1258940 2.01% 77.62% 1258940 2.01% Envoy::Stats::FakeSymbolTableImpl::populateList
1246565 1.99% 79.61% 9176968 14.66% istio::mixerclient::(anonymous namespace)::CompressByDict
1129722 1.80% 81.41% 4223040 6.74% google::protobuf::Map::operator[]
942114 1.50% 82.92% 1868320 2.98% Envoy::Stats::AllocatorImpl::makeCounter
784101 1.25% 84.17% 784101 1.25% google::protobuf::Map::Init
617907 0.99% 85.16% 617907 0.99% absl::container_internal::raw_hash_set::initialize_slots
543261 0.87% 86.02% 543261 0.87% std::__1::basic_string::assign
518713 0.83% 86.85% 518713 0.83% add_hd_table_incremental
439880 0.7% 87.55% 439880 0.7% google::protobuf::Map::InnerMap::Resize
382542 0.61% 88.17% 382542 0.61% nghttp2_rcbuf_new2
360214 0.58% 88.74% 600378 0.96% Envoy::Stats::IsolatedStoreImpl::IsolatedStoreImpl
334802 0.53% 89.28% 611038 0.98% google::protobuf::Map::CreateValueTypeInternal
327624 0.52% 89.80% 327624 0.52% Envoy::Http::HeaderMapImpl::HeaderList::insert
313786 0.5% 90.30% 713387 1.14% Envoy::Stats::AllocatorImpl::makeGauge
239588 0.38% 90.68% 4901949 7.83% Envoy::Upstream::PriorityStateManager::registerHostForPriority
153768 0.25% 90.93% 5205957 8.31% Envoy::Upstream::HostDescriptionImpl::HostDescriptionImpl
95384 0.15% 91.08% 434256 0.69% Envoy::Upstream::EdsClusterImpl::updateHostsPerLocality
77122 0.12% 91.20% 1286678 2.05% Envoy::Router::Filter::decodeHeaders
77088 0.12% 91.33% 423984 0.68% Envoy::Http::Http2::ServerConnectionImpl::onBeginHeaders
38548 0.062% 91.39% 385480 0.62% Envoy::Extensions::TransportSockets::Tls::ServerSslSocketFactory::createTransportSocket
33 5.3e-05% 91.39% 780333 1.25% Envoy::Http::Http2::ConnPoolImpl::newStream
21 3.4e-05% 91.39% 6685649 10.68% [libc-2.23.so]
-1 1.6e-06% 91.39% 5494482 8.78% Envoy::Grpc::AsyncStreamCallbacks::onReceiveMessageRaw
0 0% 91.39% 481920 0.77% ASN1_STRING_set
0 0% 91.39% 559016 0.89% ASN1_STRING_type_new
0 0% 91.39% 2660166 4.25% ASN1_item_d2i
0 0% 91.39% 1561496 2.49% ASN1_item_ex_d2i
0 0% 91.39% 597560 0.95% ASN1_primitive_new
0 0% 91.39% 12093297 19.31% Envoy::Buffer::WatermarkBuffer::add
0 0% 91.39% 5495670 8.78% Envoy::Config::GrpcMuxImpl::onDiscoveryResponse
0 0% 91.39% 5497723 8.78% Envoy::Config::GrpcMuxSubscriptionImpl::onConfigUpdate
0 0% 91.39% 9202705 14.70% Envoy::Event::DispatcherImpl::clearDeferredDeleteList
0 0% 91.39% 313945 0.5% Envoy::Event::DispatcherImpl::run
0 0% 91.39% 7226144 11.54% Envoy::Event::DispatcherImpl::runPostCallbacks
0 0% 91.39% 38727198 61.85% Envoy::Event::FileEventImpl::assignEvents(unsigned int)::$_0::__invoke
0 0% 91.39% 1040946 1.66% Envoy::Extensions::ListenerFilters::TlsInspector::Filter::done
0 0% 91.39% 1098788 1.75% Envoy::Extensions::ListenerFilters::TlsInspector::Filter::onRead
0 0% 91.39% 1098788 1.75% Envoy::Extensions::ListenerFilters::TlsInspector::Filter::parseClientHello
0 0% 91.39% 732336 1.17% Envoy::Extensions::NetworkFilters::HttpConnectionManager::HttpConnectionManagerConfig::createFilterChain
0 0% 91.39% 346932 0.55% Envoy::Extensions::TransportSockets::Tls::ContextImpl::newSsl
0 0% 91.39% 346932 0.55% Envoy::Extensions::TransportSockets::Tls::SslSocket::SslSocket
0 0% 91.39% 12215887 19.51% Envoy::Extensions::TransportSockets::Tls::SslSocket::doRead
0 0% 91.39% 5493586 8.77% Envoy::Grpc::AsyncStreamImpl::onData
0 0% 91.39% 5492844 8.77% Envoy::Http::AsyncStreamImpl::encodeData
0 0% 91.39% 5964915 9.53% Envoy::Http::CodecClient::CodecReadFilter::onData
0 0% 91.39% 5967141 9.53% Envoy::Http::CodecClient::onData
0 0% 91.39% 462528 0.74% Envoy::Http::ConnectionManagerImpl::ActiveStream::addStreamFilter
0 0% 91.39% 732336 1.17% Envoy::Http::ConnectionManagerImpl::ActiveStream::createFilterChain
0 0% 91.39% 5834884 9.32% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeHeaders
0 0% 91.39% 9202565 14.70% Envoy::Http::ConnectionManagerImpl::ActiveStream::~ActiveStream
0 0% 91.39% 18804160 30.03% Envoy::Http::ConnectionManagerImpl::onData
0 0% 91.39% 481800 0.77% Envoy::Http::HeaderMapImpl::insertByKey
0 0% 91.39% 780629 1.25% Envoy::Http::Http2::ConnPoolImpl::newClientStream
0 0% 91.39% 366168 0.58% Envoy::Http::Http2::ConnectionImpl::Http2Callbacks::Http2Callbacks()::$_8::__invoke
0 0% 91.39% 12093297 19.31% Envoy::Http::Http2::ConnectionImpl::Http2Callbacks::Http2Callbacks()::$_9::__invoke
0 0% 91.39% 665136 1.06% Envoy::Http::Http2::ConnectionImpl::StreamImpl::encodeHeaders
0 0% 91.39% 24652940 39.37% Envoy::Http::Http2::ConnectionImpl::dispatch
0 0% 91.39% 11405496 18.22% Envoy::Http::Http2::ConnectionImpl::onFrameReceived
0 0% 91.39% 327624 0.52% Envoy::Http::Http2::ConnectionImpl::saveHeader
0 0% 91.39% 780795 1.25% Envoy::Http::Http2::ConnectionImpl::sendPendingFrames
0 0% 91.39% 18645021 29.78% Envoy::Http::Http2::ServerConnectionImpl::dispatch
0 0% 91.39% 3432564 5.48% Envoy::Http::Mixer::Filter::decodeHeaders
0 0% 91.39% 9182310 14.66% Envoy::Http::Mixer::Filter::log
0 0% 91.39% 8009107 12.79% Envoy::MainCommonBase::run
0 0% 91.39% 36883295 58.91% Envoy::Network::ConnectionImpl::onFileEvent
0 0% 91.39% 36710975 58.63% Envoy::Network::ConnectionImpl::onReadReady
0 0% 91.39% 883355 1.41% Envoy::Network::DnsResolverImpl::PendingResolution::onAresGetAddrInfoCallback
0 0% 91.39% 24744536 39.52% Envoy::Network::FilterManagerImpl::onContinueReading
0 0% 91.39% 5490188 8.77% Envoy::Router::Filter::UpstreamRequest::decodeData
0 0% 91.39% 549465 0.88% Envoy::Router::Filter::UpstreamRequest::onPoolReady
0 0% 91.39% 1041160 1.66% Envoy::Server::ConnectionHandlerImpl::ActiveTcpListener::newConnection
0 0% 91.39% 8853767 14.14% Envoy::Server::InstanceImpl::run
0 0% 91.39% 45547833 72.74% Envoy::Server::WorkerImpl::threadRoutine
0 0% 91.39% 2838675 4.53% Envoy::Stats::IsolatedStatsCache::get
0 0% 91.39% 1984012 3.17% Envoy::Stats::IsolatedStoreImpl::counter
0 0% 91.39% 854663 1.36% Envoy::Stats::IsolatedStoreImpl::gauge
0 0% 91.39% 854663 1.36% Envoy::Stats::IsolatedStoreImpl::gaugeFromStatName
0 0% 91.39% 1258940 2.01% Envoy::Stats::MetricHelper::MetricHelper
0 0% 91.39% 1258940 2.01% Envoy::Stats::MetricImpl::MetricImpl
0 0% 91.39% 2950080 4.71% Envoy::Stats::ParentHistogramImpl::merge
0 0% 91.39% 2950080 4.71% Envoy::Stats::ThreadLocalStoreImpl::mergeInternal
0 0% 91.39% 45490020 72.65% Envoy::Thread::ThreadImplPosix::ThreadImplPosix(std::__1::function)::$_0::__invoke
0 0% 91.39% 5458542 8.72% Envoy::Upstream::EdsClusterImpl::BatchUpdateHelper::batchUpdate
0 0% 91.39% 5458542 8.72% Envoy::Upstream::EdsClusterImpl::onConfigUpdate
0 0% 91.39% 5205957 8.31% Envoy::Upstream::HostImpl::HostImpl
0 0% 91.39% 5458542 8.72% Envoy::Upstream::PrioritySetImpl::batchHostUpdate
0 0% 91.39% 2890944 4.62% Envoy::Utils::(anonymous namespace)::getCertSAN
0 0% 91.39% 2890944 4.62% Envoy::Utils::GetPrincipal
0 0% 91.39% 2890944 4.62% SSL_get_certificate
0 0% 91.39% 346932 0.55% SSL_new
0 0% 91.39% 2891094 4.62% X509_parse_from_buffer
0 0% 91.39% 45432042 72.56% [libpthread-2.23.so]
0 0% 91.39% 617872 0.99% absl::container_internal::raw_hash_set::find_or_prepare_insert
0 0% 91.39% 617907 0.99% absl::container_internal::raw_hash_set::prepare_insert
0 0% 91.39% 617907 0.99% absl::container_internal::raw_hash_set::resize
0 0% 91.39% 1638480 2.62% asn1_d2i_ex_primitive
0 0% 91.39% 1638480 2.62% asn1_ex_c2i
0 0% 91.39% 1002382 1.60% asn1_item_ex_combine_new
0 0% 91.39% 2660166 4.25% asn1_item_ex_d2i
0 0% 91.39% 2640876 4.22% asn1_template_ex_d2i
0 0% 91.39% 2640876 4.22% asn1_template_noexp_d2i
0 0% 91.39% 1002372 1.60% c2i_ASN1_OBJECT
0 0% 91.39% 883355 1.41% end_hquery
0 0% 91.39% 883355 1.41% end_query
0 0% 91.39% 1490697 2.38% envoy::api::v2::core::Metadata::Metadata
0 0% 91.39% 54550289 87.12% event_base_loop
0 0% 91.39% 54768675 87.47% event_process_active_single_queue
0 0% 91.39% 477924 0.76% google::protobuf::Struct::MergeFrom
0 0% 91.39% 950922 1.52% google::protobuf::internal::MapField::MergeFrom
0 0% 91.39% 1096132 1.75% google::protobuf::internal::MapFieldLite::MergeFrom
0 0% 91.39% 9182310 14.66% istio::control::ClientContextBase::SendReport
0 0% 91.39% 2890944 4.62% istio::control::http::AttributesBuilder::ExtractAuthAttributes
0 0% 91.39% 3507648 5.60% istio::control::http::AttributesBuilder::ExtractCheckAttributes
0 0% 91.39% 501072 0.8% istio::control::http::AttributesBuilder::ExtractRequestHeaderAttributes
0 0% 91.39% 4201440 6.71% istio::control::http::RequestHandlerImpl::Check
0 0% 91.39% 9182310 14.66% istio::control::http::RequestHandlerImpl::Report
0 0% 91.39% 616768 0.99% istio::mixer::v1::Attributes::MergeFrom
0 0% 91.39% 2072721 3.31% istio::mixerclient::(anonymous namespace)::MessageDictionary::GetIndex
0 0% 91.39% 9182310 14.66% istio::mixerclient::ReportBatch::Report
0 0% 91.39% 7405724 11.83% main
0 0% 91.39% 684384 1.09% nghttp2_frame_pack_headers
0 0% 91.39% 684384 1.09% nghttp2_hd_deflate_hd_bufs
0 0% 91.39% 474314 0.76% nghttp2_hd_inflate_hd_nv
0 0% 91.39% 24827069 39.65% nghttp2_session_mem_recv
0 0% 91.39% 780795 1.25% nghttp2_session_mem_send_internal
0 0% 91.39% 5696139 9.10% nghttp2_session_on_data_received
0 0% 91.39% 462528 0.74% nghttp2_session_on_request_headers_received
0 0% 91.39% 780795 1.25% nghttp2_session_send
0 0% 91.39% 2890944 4.62% non-virtual thunk to Envoy::Extensions::TransportSockets::Tls::SslSocket::uriSanLocalCertificate() const
0 0% 91.39% 1040876 1.66% non-virtual thunk to Envoy::Server::ConnectionHandlerImpl::ActiveSocket::continueFilterChain(bool)
0 0% 91.39% 883355 1.41% process_answer
0 0% 91.39% 883355 1.41% processfds
0 0% 91.39% 883355 1.41% qcallback
0 0% 91.39% 883355 1.41% search_callback
0 0% 91.39% 1812060 2.89% x509_name_ex_d2i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment