Using XJetty vs Tomcat : questions on memory setup and else

Hello,
In previous tests I have learned how to setup the configuration files in order to have enough memory and have the setups right before starting to test importing spaces from a Confluence install.

As we moved from Debian 11 to Debian 12, we switched to XJetty, (along with the XJetty PostgreSQL package) to avoid issues related to the Tomcat10 version not compatible with XWiki versions, so the previous configurations done in Tomcat9 files belong to the past, for the time being at least.

I have done a research to see if there are specific pre-requisite in XJetty configuration files when it comes to memory, or anything else and I didn’t find clues.

Are there specific configurations to be done in any xjetty file regarding the amount of memory needed when importing spaces from Confluence?

Thanks for any clue and pointers. :slight_smile:
Best regards,
Joyce

“XJetty” basically means “XWiki Jetty”. It’s an XWiki pre-configured version of Jetty, so the good news if that unlike with Tomcat you don’t have the “memory too low for XWiki by default” problem.

Then, if you want to allocate more memory to XWiki for various reasons, you can customize a bit the parameters passed to the SystemD configuration on /lib/systemd/system/xwiki.service. I thought the parameters were documented on xwiki.org, but it mostly relies on the user checking the documentation at the beginning of the script or using the -h parameter. For example, to customize the allocated memory the standard is to set the XWIKI_OPTS environment variable with the Java command line parameters you want to pass, so in terms of systemd it should be look like:

Environment=XWIKI_OPTS=-Xmx2048m

I don’t think the Confluence import require any specific memory setup. The recommendation would be more related to the number of documents you are going to end up with after the import and the activity on those. The reference documentation of that would be the generic https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Performances/#HMemory.

1 Like

@tmortagne Thank you very much!

From what I read here Tomcat 10 Compatibility - #4 by GOhrner it seems XWiki is nowhere near to switching back to using tomcat in a Debian stable install?

Depends on how you define “near” :slight_smile: I have good hope to have a jakarta Servlet (so Tomcat 10+ and Jetty 11+) compatible XWiki ready for 17.0.0 (so next year cycle).

In a year or so, alright. Thank you again! :smiley: