{"id":2818,"date":"2025-07-31T14:50:08","date_gmt":"2025-07-31T14:50:08","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/"},"modified":"2026-11-14T15:58:33","modified_gmt":"2026-11-14T15:58:33","slug":"debug-sql-connections-with-go-pprof-profiling-tool","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/","title":{"rendered":"Debug SQL Connections with Go pprof Profiling Tool"},"content":{"rendered":"<p class=\"wp-block-paragraph\">At adjoe, we operate with more than 30 client-facing backend services that need fast response. Any performance degradation is immediately noticeable to users, and the overall user experience would become suboptimal.\u00a0<\/p><p class=\"wp-block-paragraph\">To address performance issues, it\u2019s essential to understand the root cause, and for this, we look into how <strong>profiling<\/strong> could help us. In the Go ecosystem, pprof is a built-in profiling tool that gives visibility into runtime behavior with minimal overhead.<\/p><p class=\"wp-block-paragraph\"><strong>Why pprof?<\/strong><\/p><p class=\"wp-block-paragraph\">Whether you\u2019re dealing with CPU bottlenecks, memory leaks, or goroutine proliferation, pprof provides deep insights into the runtime behavior of Go applications. With just a few lines of code, we can generate detailed profiles, visualize performance hotspots, and make data-driven decisions to improve efficiency.\u00a0<\/p><p class=\"wp-block-paragraph\">This article explores how pprof offered us deep visibility into a real production performance issue. We explain how we diagnosed and fixed performance issues caused by how Go\u2019s database\/sql package handles connection pooling, especially when used with GORM and MySQL database.<\/p><p class=\"wp-block-paragraph\">By combining runtime analysis with profiling data tools, we were able to pinpoint database connection issues handling that aren\u2019t <em>immediately<\/em> obvious.\u00a0<\/p><p class=\"wp-block-paragraph\">This walkthrough aims to serve as a reference for engineers facing similar challenges in Go-based systems interacting with relational databases.<\/p><p class=\"wp-block-paragraph\"><strong>Backend:<\/strong><\/p><p class=\"wp-block-paragraph\">MySQL as a management database, paired with the Go GORM library.\u00a0<\/p><h2 class=\"wp-block-heading\">Heap Allocation and Goroutine Spikes<\/h2><p class=\"wp-block-paragraph\">It all started by looking at our service performance dashboard, trying to figure out the increase in the response time of the service. What was obvious was a sudden spike in heap allocations, with the stable number of requests.<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"335\" width=\"1621\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/heap-allocations-increased.png\" alt=\"\" class=\"wp-image-2961\"><\/figure><p class=\"wp-block-paragraph\">This spike was also mirrored by a steady increase in goroutines count.<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"325\" width=\"1740\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/goroutines-count-increasing.png\" alt=\"\" class=\"wp-image-2962\"><\/figure><h2 class=\"wp-block-heading\">Identifying the Root Cause: Go SQL Connection Issues<\/h2><p class=\"wp-block-paragraph\">A quick review of the error logs indicated that a deeper analysis was needed. Fortunately, we had already instrumented our mission-critical service with pprof HTTP handlers to facilitate on-demand profiling in the production environment.\u00a0<\/p><p class=\"wp-block-paragraph\">Our initial step was to inspect the heap profile, focusing on inuse_space to identify any unexpected memory usage. In order to do so, we ran the following command for the downloaded profile:<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Shell<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-bash\"> go tool pprof heap.out<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">The results were largely unremarkable, showing typical allocations associated with response compression and JSON encoding, with no signs of memory leaks or abnormal growth.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Shell<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-bash\">File: app\nType: inuse_space\nEntering interactive mode (type &quot;help&quot; for commands, &quot;o&quot; for options)\n(pprof) top\nShowing top 10 nodes out of 257\n      flat  flat%   sum%        cum   cum%\n  103.13MB 36.98% 36.98%   191.86MB 68.80%  compress\/flate.NewWriter\n   54.89MB 19.69% 56.67%    88.74MB 31.82%  compress\/flate.(*compressor).init\n   33.50MB 12.01% 68.68%    33.50MB 12.01%  encoding\/json.(*decodeState).literalStore\n   32.84MB 11.78% 80.46%    32.84MB 11.78%  compress\/flate.newDeflateFast (inline)\n   ...<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">Building on that, we considered the possibility that Go\u2019s garbage collection might be cleaning up allocations too quickly for the profiler to capture them in the inuse_space snapshot.\u00a0<\/p><p class=\"wp-block-paragraph\">To test this hypothesis, we turned to the alloc_space profile, which tracks cumulative memory allocations over time, regardless of whether they were later freed.\u00a0<\/p><p class=\"wp-block-paragraph\"><strong>This profile revealed a much clearer picture<\/strong>: the dominant source of allocations was tied to the SQL layer, strongly indicating that the issue was rooted in our database interaction logic.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Shell<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-bash\">(pprof) alloc_space\nShowing nodes accounting for 29.20GB, 63.51% of 45.98GB total\nDropped 1486 nodes (cum &lt;= 0.23GB)\nShowing top 10 nodes out of 143\n      flat  flat%   sum%        cum   cum%\n    5.49GB 11.93% 11.93%     7.10GB 15.44%  github.com\/jinzhu\/gorm.(*Scope).Fields\n    4.70GB 10.22% 22.15%     6.30GB 13.71%  github.com\/jinzhu\/gorm.(*Scope).scan\n    4.32GB  9.40% 31.55%     9.12GB 19.83%  github.com\/jinzhu\/gorm.(*Scope).New (inline)\n    3.17GB  6.88% 38.43%     3.17GB  6.88%  github.com\/jinzhu\/gorm.(*search).clone (inline)\n ....\n<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">An inspection of the goroutine pprof profile revealed that all SQL-related goroutines were in a blocked or idle state, despite the service still actively receiving incoming requests.\u00a0<\/p><p class=\"wp-block-paragraph\">It suggests that the application was stalling at the database layer, potentially due to exhausted connections or contention within the connection pool.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Shell<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-bash\">File: app\n\nType: goroutine\n\nTime: Feb 6, 2025 at 10:32am (CET)\n\nEntering interactive mode (type &quot;help&quot; for commands, &quot;o&quot; for options)\n\n(pprof) top\n\nShowing nodes accounting for 1256, 99.84% of 1258 total\n\nDropped 129 nodes (cum &lt;= 6)\n\nShowing top 10 nodes out of 120\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0flat\u00a0 flat% \u00a0 sum%\u00a0 \u00a0 \u00a0 \u00a0 cum \u00a0 cum%\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01256 99.84% 99.84% \u00a0 \u00a0 \u00a0 1256 99.84%\u00a0 runtime.gopark\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0 \u00a0 0% 99.84%\u00a0 \u00a0 \u00a0 \u00a0 115\u00a0 9.14%\u00a0 adjoe.io\/core\/src\/db.(*GormRepository).CountWithContext\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0 \u00a0 0% 99.84% \u00a0 \u00a0 \u00a0 \u00a0 56\u00a0 4.45%\u00a0 adjoe.io\/core\/src\/db.(*GormRepository).Find\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0 \u00a0 0% 99.84%\u00a0 \u00a0 \u00a0 \u00a0 329 26.15%\u00a0 adjoe.io\/core\/src\/db.(*GormRepository).FindWithContext\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0 \u00a0 0% 99.84%\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 6\u00a0 0.48%\n<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">While it\u2019s expected to see parked goroutines during idle periods, it wasn\u2019t the case here. The pprof graph indicated a steadily increasing number of goroutines over time. If the goroutines are asleep, why are their numbers growing?\u00a0<\/p><p class=\"wp-block-paragraph\">To investigate further, we turned again to pprof, this time to capture and inspect the full block stack traces of all active goroutines for clues about where and why they were being blocked.<br><a href=\"about:blank\">http:\/\/host:port\/debug\/pprof\/goroutine?<strong>debug=2<\/strong><\/a><\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Shell<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-bash\">goroutine x [IO wait]:\n\ninternal\/poll.runtime_pollWait(0x7fb141439140, 0x72)\n\n\/usr\/local\/go\/src\/net\/http\/server.go:677 +0xba\n\n\u2026..\n\ngoroutine x [select]:\n\ndatabase\/sql.(*DB).conn\u2026.\n\ndatabase\/sql.(*DB).query\u2026..\n\ndatabase\/sql.(*DB).QueryContext\u2026\n\ndatabase\/sql.(*DB).retry\u2026\n<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">Developers familiar with the internals of Go\u2019s database\/sql package may already recognize the underlying issue, but let\u2019s walk through it for clarity, revisiting the way the Go sql package is handling connections.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Go<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-go\">func (db *DB) QueryContext(ctx context.Context, query string, args ...any) (*Rows, error) {\n\nvar rows *Rows\n\nvar err error\n\nerr = db.retry(func(strategy connReuseStrategy) error {\n\nrows, err = db.query(ctx, query, args, strategy)\n\nreturn err\n\n})\n\n...\n\nfunc (db *DB) query(ctx context.Context, query string, args []any, strategy connReuseStrategy) (*Rows, error) {\n\ndc, err := db.conn(ctx, strategy)\n\nif err != nil {\n\nreturn nil, err\n\n}\n\n...\n\nfunc (db *DB) conn(ctx context.Context, strategy connReuseStrategy) (*driverConn, error) {\n\n...\n\nreq := make(chan connRequest, 1)\n\ndelHandle := db.connRequests.Add(req)\n\n...\n\nselect {\n\ncase &lt;-ctx.Done():\n\n...\n\ncase ret, ok := &lt;-req:\n\ndb.waitDuration.Add(int64(time.Since(waitStart)))\n\n}<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">From the code above, we can see that unless the context is explicitly canceled, the request will block indefinitely while waiting to read from the &lt;-req channel.\u00a0<\/p><p class=\"wp-block-paragraph\">In other words, if all SQL connections are exhausted, the Go runtime will continue to wait, retrying until a connection becomes available and potentially leading to a buildup of blocked goroutines.<\/p><h2 class=\"wp-block-heading\">Solving Go SQL Connection Bottlenecks<\/h2><p class=\"wp-block-paragraph\">The solution may involve implementing one or more of the following strategies, ideally in combination, though that\u2019s not always feasible depending on the system constraints:<\/p><ol class=\"wp-block-list\"><li>Check if enough connections were allocated.<\/li><\/ol>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Go<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-go\">...\n\ndb.DB().SetMaxOpenConns(maxOpenConns) \/\/ increase this value\n<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">The recommended number of connections depends on the application load, but it should not be higher than the database could handle.\u00a0<\/p><ol class=\"wp-block-list\"><li>Propagate context cancellation to SQL queries<\/li><\/ol><p class=\"wp-block-paragraph\">This is useful as users may cancel the request, so there is no reason we should wait for the query result and hold the connection.\u00a0<\/p><ol class=\"wp-block-list\"><li>Introduce a timeout for the queries:<br>Depending on the libraries used and other constraints, it is not always possible to cancel the context for queries. In this case a timeout for queries might come in handy.<br>For example, if you use Mysql, it\u2019s possible to set the read timeout in case of long running queries. This will ensure that such queries won\u2019t stuck in a running state.<\/li><\/ol>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Go<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-go\">\/\/ see the\u00a0 https:\/\/github.com\/go-sql-driver\/mysql\/blob\/master\/dsn.go#L354 for \/\/ a reference\n\ndb, err := sql.Open(&quot;mysql&quot;, &quot;user:password@\/dbname?readTimeout=30s&quot;)<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">As demonstrated, the solution itself is relatively simple. However, uncovering such issues often requires correlating data from multiple profiling sources (such as heap, goroutine, and CPU profiles) to gain a better understanding.\u00a0<\/p><p class=\"wp-block-paragraph\">When analyzing collected profiles, it\u2019s especially useful to explore different profile views and options, like alloc_space and inuse_space, to capture both allocation patterns and live memory usage, providing a fuller picture of the problem.<\/p><h2 class=\"wp-block-heading\">End Note\u00a0<\/h2><p class=\"wp-block-paragraph\">With the right profiling setup in place, we used pprof to trace a complex issue back to Go\u2019s SQL connection handling. Using pprof as your lens, even intricate connection pooling challenges become transparent and manageable, enabling your services to run leaner, faster, and more resilient.<\/p><p class=\"wp-block-paragraph\">This approach helps improve backend efficiency while supporting reliable and smooth user experiences, even under heavy load.\u00a0<\/p><p class=\"wp-block-paragraph\">For more in-depth explorations into our engineering practices, check out our <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/\">Engineers\u2019 Blog<\/a>, where the adjoe team shares our latest innovations and lessons learned.<\/p><section class=\"l-section l-section--jobs-include is-light l-pt-lg l-pb-lg\" data-block=\"jobs-include\">\n\t<div class=\"l-wrapper\">\n\t\t<div class=\"jobs-include\">\n\t\t\t\n\t\t\t<div class=\"jobs-include__table-wrap\" tabindex=\"0\">\n\t\t\t\t<table id=\"jobs-include-table-1\" class=\"jobs-include__table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th scope=\"col\">Role<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Team<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Location<\/th>\n\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t<\/thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/ko\/careers\/open-positions\/7a80a967-7259-4ef9-8314-245d4f467287\/\">\n\t\t\t\t\t\t\t\t\t\tProduct Owner &#8211; Dashboards (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tAdvertising Solutions\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>At adjoe, we operate with more than 30 client-facing backend services that need fast response. Any performance degradation is immediately&#8230;<\/p>\n","protected":false},"author":3,"featured_media":2963,"template":"","engineer_blog_category":[76],"class_list":["post-2818","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-backend"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"og:description\" content=\"At adjoe, we operate with more than 30 client-facing backend services that need fast response. Any performance degradation is immediately...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-14T15:58:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/\",\"name\":\"Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp\",\"datePublished\":\"2025-07-31T14:50:08+00:00\",\"dateModified\":\"2026-11-14T15:58:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/debug-sql-connections-with-go-pprof-profiling-tool\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Debug SQL Connections with Go pprof Profiling Tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/Adjoe\\\/100076450974671\\\/\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/","og_locale":"ko_KR","og_type":"article","og_title":"Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value","og_description":"At adjoe, we operate with more than 30 client-facing backend services that need fast response. Any performance degradation is immediately...","og_url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","article_modified_time":"2026-11-14T15:58:33+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/","url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/","name":"Debug SQL Connections with Go pprof Profiling Tool - adjoe | Making every interaction the start of lasting value","isPartOf":{"@id":"https:\/\/adjoe.io\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp","datePublished":"2025-07-31T14:50:08+00:00","dateModified":"2026-11-14T15:58:33+00:00","breadcrumb":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/07\/2025.07.30-Debugging-SQL-Connections-Using-Go-Profiling-with-Pprof.webp","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/ko\/"},{"@type":"ListItem","position":2,"name":"Debug SQL Connections with Go pprof Profiling Tool"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/ko\/#website","url":"https:\/\/adjoe.io\/ko\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/ko\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/ko\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/ko\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":4,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2818\/revisions"}],"predecessor-version":[{"id":3728,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2818\/revisions\/3728"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media\/2963"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media?parent=2818"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog_category?post=2818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}