Solana "compute budget exceeded": the fix is the limit, not the fee
"exceeded CUs meter" means your transaction ran out of compute units. Raising the priority fee won't help; raising the compute unit limit will.
· 1 min read
Solana meters work in compute units (CU). Every transaction has a compute unit limit, and if the programs it calls use more than that, the runtime stops them part way. The whole transaction is rolled back; only the fee is charged.
What it looks like
Program JUP6Lkb... consumed 199850 of 200000 compute units Program JUP6Lkb... failed: exceeded CUs meter at BPF instruction
The consumed X of Y line is the giveaway: X is right at the limit Y.
Where the limit comes from
- If the transaction sets no limit, legacy and v0 transactions get a default of 200,000 CU per non-builtin instruction and 3,000 per builtin one, such as System Program calls.
- A
SetComputeUnitLimitinstruction overrides that, up to a maximum of 1,400,000 CU per transaction. - Most wallets and apps set the limit for you after simulating the transaction.
The fix
Raise the compute unit limit. A higher priority fee doesn't add compute: it only bids for faster processing. Rektopsy's rule is to take what the transaction consumed before it was stopped, multiply by 1.5 (it stopped early, so the true need is higher), round up to the next 1,000, and cap at 1,400,000.
Don't set the limit far higher than needed: the priority fee is charged on the limit you request, not on what you use.
How common is it?
For regular wallet users it's rare, because wallets simulate first and size the limit. In the 25 real mainnet failures Rektopsy is tested on, two of the three compute failures came from bots that set tight limits on purpose.
Quick answers
Will a higher priority fee fix 'exceeded CUs meter'?
No. Priority fees buy faster processing, not more compute. Raise the compute unit limit instead.
What is the maximum compute unit limit on Solana?
1,400,000 compute units per transaction.
Do I pay for unused compute units?
The priority fee is charged on the limit you request, so an oversized limit with a priority fee costs more than needed.