DB max allowed packet size

In Confluence Administration, (Menu : Administration -> Support Tools - Instant Health)
I saw the message

  'Max Allowed Packet'

      -> checks if the max_allowed_packet variable in your MySQL database is appropriate.

       -> change max_allowed_packet variable to 34M

(https://confluence.atlassian.com/confkb/exceeds-max-allowed-packet-for-mysql-179443425.html)

 

So I changed the max_allowed_packet variable 16M to 32M as maria DB
recommendation (two times 16M).


Is it a must to change the max_allowed_packet variable size to 34M?

 

If it is difficult to change, what is the result?

1 answer

0 vote
Gonchik Tsymzhitov Community Champion Oct 10, 2017

Hi! 

 

  • You need to change max_allowed_packet  in my.cnf, by default it is located in /etc/my.cnf
  • After change parameter you need to restart mysql. before stop your confluence instance. 
  • That's all

 

Info: 

https://dev.mysql.com/doc/refman/5.7/en/packet-too-large.html

https://stackoverflow.com/questions/8062496/how-to-change-max-allowed-packet-size/8062996

 

Cheers, 

Tsymzhitov Gonchik

Thank for your reply.

 

But I want to know what value is max_allowed_packet variable?

In confluence system, it recommend to set 34M,

but system administrator in my confluence server recommend max_allowed packet size in maria DB is multiple of 2, so 32M.

 

Is it 34M or 32M?

 

Gonchik Tsymzhitov Community Champion Oct 11, 2017

Unfortunately, in my experience I have set different values for mysql, percona - different values not multiple of 2.

And in documentation in Maria DB, I have not seen any info about multiple of 2.  

https://mariadb.com/kb/en/library/server-system-variables/#max_allowed_packet

 

For my instance have set max_allowed_packet = 256M

Because it is need for faster backup. 

Hence you can set 64M, for to be in deal with your system administrator:)

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

901 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you