Limit file size and message size

We use Spark as a client to our Openfire server (4.7.4), and we need to limit network load.

How can I limit the size of message and file transfer?
Any plugin that can help me?

Not really. There are some network buffer limits that you can set, but that would make things crash pretty bad, if they’re hit.

I’m assuming that file transfers add up a lot more than (chat) messages. Maybe you could try offloading the related network traffic by making available SOCK5 proxies (outside of the limited-bandwidth network), or promote peer-to-peer file transfer?

Alternatively, you can write custom Openfire plugins to limit certain types of traffic. Openfire has an excellent plugin mechanisms that you can use for that.