How to change the kibana jvm memory

Yes, max-old-space-size is the correct param. Check this