Skip to content

perf(docs): run nuxi dev and build with a 3 GB heap - #471

Merged
vite-hub[bot] merged 1 commit into
mainfrom
perf/docs-heap-3gb
Nov 19, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
perf/docs-heap-3gb

Conversation

@onmax

@onmax onmax commented Nov 19, 2026

Copy link
Copy Markdown
Owner

The docs scripts asked Node for a 6 GB heap in nuxi dev and 7 GB in nuxi build. The site no longer needs that, so on a shared machine the flags only let a run hold more memory than it uses. Both now ask for 3 GB.

On main with a 3 GB heap:

Command Result
pnpm --dir docs run generate builds in 1m 29s and checks the links of 438 pages, 105 s in all. Peak RSS of the process tree is 5,901 MB (5,761 MB for the Nuxt process, sampled once a second)
nuxi build (an earlier run) 1m 55s, peak RSS 4,581 MB
nuxi dev (an earlier run) serves the pages, /play, the Comments route and /_vitehub/rpc with no out-of-memory error

RSS is above the heap limit because it counts native memory too (Rolldown, Shiki's WebAssembly, buffers). The V8 heap itself stays under 3 GB.

Node 24.21.0, Linux.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T11:17:40.261865Z
We couldn’t complete this review. Comment @codex review to try again.
241e08f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: Sound — lowering the existing command-scoped V8 old-space limits keeps the change confined to Nuxt without treating 3 GiB as a cap on total process memory.

Reviewed changes in docs/package.json and traced docs:generate through CI. No P0 or P1 findings.

  • Development: nuxi dev now uses a 3072 MiB old-space limit instead of 6144 MiB, with the preparation steps and port unchanged.
  • Generation: nuxi build now uses the same limit instead of 7168 MiB, with the post-build link check unchanged.

I verified that Node 24 honors the flag. I did not rerun Nuxt; the PR reports successful generation and a dev smoke test at the new limit, and the CI build was still running at review time.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@471

comark-badge

pnpm add https://pkg.pr.new/comark-badge@471

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@471

comark-cards

pnpm add https://pkg.pr.new/comark-cards@471

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@471

comark-cast

pnpm add https://pkg.pr.new/comark-cast@471

comark-charts

pnpm add https://pkg.pr.new/comark-charts@471

comark-chat

pnpm add https://pkg.pr.new/comark-chat@471

comark-chips

pnpm add https://pkg.pr.new/comark-chips@471

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@471

comark-code

pnpm add https://pkg.pr.new/comark-code@471

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@471

comark-colors

pnpm add https://pkg.pr.new/comark-colors@471

comark-comments

pnpm add https://pkg.pr.new/comark-comments@471

comark-critic

pnpm add https://pkg.pr.new/comark-critic@471

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@471

comark-details

pnpm add https://pkg.pr.new/comark-details@471

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@471

comark-diff

pnpm add https://pkg.pr.new/comark-diff@471

comark-embed

pnpm add https://pkg.pr.new/comark-embed@471

comark-fields

pnpm add https://pkg.pr.new/comark-fields@471

comark-figure

pnpm add https://pkg.pr.new/comark-figure@471

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@471

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@471

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@471

comark-github

pnpm add https://pkg.pr.new/comark-github@471

comark-icon

pnpm add https://pkg.pr.new/comark-icon@471

comark-include

pnpm add https://pkg.pr.new/comark-include@471

comark-keys

pnpm add https://pkg.pr.new/comark-keys@471

comark-links

pnpm add https://pkg.pr.new/comark-links@471

comark-linter

pnpm add https://pkg.pr.new/comark-linter@471

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@471

comark-mark

pnpm add https://pkg.pr.new/comark-mark@471

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@471

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@471

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@471

comark-media

pnpm add https://pkg.pr.new/comark-media@471

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@471

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@471

comark-outline

pnpm add https://pkg.pr.new/comark-outline@471

comark-properties

pnpm add https://pkg.pr.new/comark-properties@471

comark-qr

pnpm add https://pkg.pr.new/comark-qr@471

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@471

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@471

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@471

comark-sources

pnpm add https://pkg.pr.new/comark-sources@471

comark-steps

pnpm add https://pkg.pr.new/comark-steps@471

comark-table

pnpm add https://pkg.pr.new/comark-table@471

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@471

comark-tests

pnpm add https://pkg.pr.new/comark-tests@471

comark-time

pnpm add https://pkg.pr.new/comark-time@471

comark-ui

pnpm add https://pkg.pr.new/comark-ui@471

comark-xref

pnpm add https://pkg.pr.new/comark-xref@471

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@471

commit: 241e08f

@vite-hub
vite-hub Bot merged commit dd49456 into main Nov 19, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the perf/docs-heap-3gb branch November 19, 2026 11:27
@vite-hub

vite-hub Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

@github-actions github-actions Bot mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant