Unverified Commit 46272dcf authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

Name the internal trace server process (#99257)

## Summary

Give the long-running `next internal trace` server a recognizable
process title with the Next.js version, matching the version format used
by the build and server commands. Set the title when the trace command
starts so both the WebSocket and MCP services appear under the same
name, without changing their behavior.

This way that `node` process consuming 40g of ram is a little easier to
understand
<!-- NEXT_JS_LLM -->

<!-- fleet 1cc505a4-180a-44ae-8200-3af268332f61 -->
Co-authored-by: 's avatarvercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent d3499931
...@@ -116,6 +116,7 @@ export async function startTurboTraceServerCli( ...@@ -116,6 +116,7 @@ export async function startTurboTraceServerCli(
port: number | undefined, port: number | undefined,
mcpPort: number | undefined mcpPort: number | undefined
) { ) {
process.title = `next internal trace (v${process.env.__NEXT_VERSION})`
const wsPort = port ?? DEFAULT_WS_PORT const wsPort = port ?? DEFAULT_WS_PORT
const httpPort = mcpPort ?? wsPort + 1 const httpPort = mcpPort ?? wsPort + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment