alibaba/nacos · error · NacosException

5034

5034

Error message

Configuration content size limit exceeded [group=%s, namespaceId=%s].

What it means

Error "Configuration content size limit exceeded [group=%s, namespaceId=%s]." thrown in alibaba/nacos.

Source

Thrown at config/src/main/java/com/alibaba/nacos/config/server/aspect/CapacityManagementAspect.java:120

        return pjp.proceed();
    }
    
    /**
     * Update operation: open the limitation of capacity management, and it will check the size of content.
     *
     * @throws Throwable Throws Exception when actually operate.
     */
    private Object do4Update(ProceedingJoinPoint pjp, String dataId, String group,
        String namespaceId, String content) throws Throwable {
        if (!PropertyUtil.isCapacityLimitCheck()) {
            return pjp.proceed();
        }
        try {
            boolean hasTenant = StringUtils.isNotBlank(namespaceId);
            Capacity capacity = getCapacity(group, namespaceId, hasTenant);
            if (isSizeLimited(group, namespaceId, getCurrentSize(content), hasTenant, false,
                capacity)) {
                throw new NacosException(ErrorCode.OVER_MAX_SIZE.getCode(),
                    String.format(
                        "Configuration content size limit exceeded [group=%s, namespaceId=%s].",
                        group, namespaceId));
            }
        } catch (Exception e) {
            LOGGER.error(
                "[CapacityManagement] Error during update operation for dataId: {}, group: {}, namespaceId: {}",
                dataId, group, namespaceId, e);
            throw e;
        }
        return pjp.proceed();
    }
    
    /**
     * Write operation. Step 1: count whether to open the limitation checking function for capacity management; Step 2:
     * open limitation checking capacity management and check size of content and quota;
     *
     * @throws Throwable Exception.

View on GitHub (pinned to 9b989acdf1)

Solutions

  1. Reduce the size or count of the input so it stays within the configured limit.

When it happens

Trigger: Thrown at config/src/main/java/com/alibaba/nacos/config/server/aspect/CapacityManagementAspect.java:120 when the library encounters an invalid state.

Common situations: Publishing config content larger than the allowed capacity for the group/namespace.


AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14). Data as JSON: /api/errors/f534262d335075d4. Report an issue: GitHub.