# org.apache.kafka.common.errors.RecordTooLargeException

**URL:** <https://forum.confluent.io/t/org-apache-kafka-common-errors-recordtoolargeexception/2724>\
**Category:** Clients\
**Created:** [14 September 2021 01:45 UTC](https://forum.confluent.io/t/org-apache-kafka-common-errors-recordtoolargeexception/2724 "2021-09-14T01:45:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gg24](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@gg24](https://forum.confluent.io/u/gg24)\
**Post date:** [14 September 2021 01:45 UTC](https://forum.confluent.io/t/org-apache-kafka-common-errors-recordtoolargeexception/2724/1 "2021-09-14T01:45:51Z")

</div>

Hello i am trying to address the large payload size issue, when I try to push large payload(30MB) using offset explorer i am seeing this message

“org.apache.kafka.common.errors.RecordTooLargeException  
The message is 3280843 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration”

Here are the properties i have set in different files

```auto
-- server.properties
message.max.bytes=104857600
replica.fetch.max.bytes=104857600

```

```auto
-- producer.properties
max.request.size = 104857600

```

```auto
---consumer.properties
max.partition.fetch.bytes=104857600

```

```auto
-- topic -> payload.max.test
max.message.bytes=104857600

```

can someone help me if i am missing any other property

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [15 September 2021 16:42 UTC](https://forum.confluent.io/t/org-apache-kafka-common-errors-recordtoolargeexception/2724/2 "2021-09-15T16:42:07Z")

</div>

@gg24 In looking at the source code, I’ve noticed that this error message has been improved in AK 2.8 to include the configured size in the exception message.

> <https://github.com/apache/kafka/blob/afaa12a0968a952dfc601a7485a76399edd8c78f/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L1076>

I’m wondering if you could try an upgraded AK client so that you could better verify that your client configuration is taking the desired effect .
