Is there a limit on the size of documents loaded by Collaborator Online?

The memory of the server where coolwsd is located is 2GB. When Collaborator Online loads a document of 3MB or more, it reports an error: Failed to load the document Is this documenteithermal formed or is taking more resources than allowed.Please contact the administrator. Is the performance related to server memory size or is there any configuration?Is there a limit on the size of documents loaded by Collaborator Online?

Hey @Chenkai, thanks for the question.

Is the performance related to server memory size or is there any configuration?

Yes, there is a configuration file.

Is there a limit on the size of documents loaded by Collaborator Online?

No. Not limits in memory, but it does limit load time.

Back in 2021, mmeeks described how to tweak:

  • coolwsd.xml = the main Collabra Online settings file
  • + limit_load_secs = the “don’t let a document load for longer than X seconds” setting

In the XML file, it describes:

“Maximum number of seconds to wait for a document load to succeed. 0 for unlimited.”

so if you change it to 0, that would let Collabora take as long as it needs to load some behemoth-sized document.

By default though, these limits are in place so one runaway user/document can’t suck up all the resources and jam up everyone else.

If you’re the only one using it, or if you’re going to only have a handful of trustworthy users using Collabora, then sure, make it unlimited. :slight_smile:

1 Like

Heh =) a great answer here; thanks Mike.

If people want to configure a limit on file size that is possible with 

this setting in coolwsd.

         <max_file_size desc="Maximum document size in bytes to 

load. 0 for unlimited." type=“uint”>0</max_file_size>

That defaults to unlimited.
2 Likes