An XMPP server licensed under the Open Source Apache License.
Find a file
Guus der Kinderen a8f983fce1
OF-2818: Netty should not use 5MB buffers (#2455)
This corrects a mistake where a configuration of having a _maximum_ buffer size was turned into having a _fixed_ buffer size.

Having 5MB buffers is bad, as with a limited amount of messages, a _lot_ of memory is being consumed.

This commit removes the hard-coded buffer size configuration, while retaining the maximum message length directive.

I've tested that, using a websocket client connection:
- a message of 128k characters can be sent using the default configuration;
- a message of 128k characters can not be sent when Openfire is reconfigured to use 4k for the `xmpp.parser.buffer.size` property
2024-03-28 13:24:55 +00:00
.github Bump junit:junit in /.github/actions/connectivitytests-action/conntest (#2449) 2024-03-16 16:53:34 +00:00
.idea Add icon to Intellij project config 2023-10-04 19:30:08 +02:00
.mvn/wrapper Update mvnw wrapper 2022-10-05 09:52:15 +02:00
build OF-2802: Upgrade Postgresql JDBC driver from 4.6.0 to 4.7.2 2024-02-21 20:32:58 +01:00
distribution march version to 4.9.0-SNAPSHOT 2024-01-12 11:45:31 -06:00
documentation Update documentation/openfire.doap 2024-03-26 17:31:02 +01:00
i18n OF-2816: i18n Hebrew update 2024-03-18 15:36:35 +01:00
plugins mnt: standarize igniterealtime archiva address 2024-01-19 17:54:39 +01:00
starter march version to 4.9.0-SNAPSHOT 2024-01-12 11:45:31 -06:00
xmppserver OF-2818: Netty should not use 5MB buffers (#2455) 2024-03-28 13:24:55 +00:00
.dependency-check-suppressions.xml OF-2728: Phase out Rome 2023-11-13 19:37:38 +00:00
.dockerignore Remove multi-stage build, split to a separate script 2021-01-28 21:29:46 +00:00
.editorconfig Yaml files have 2-space indents, instead of 4 2020-04-10 14:33:23 +02:00
.gitignore OF-2741: Add macOS dmg builds to gitignore 2023-12-15 19:31:21 +01:00
.transifex.yml Create .transifex.yml 2022-12-23 21:07:27 +01:00
Dockerfile OF-2384: Remote debug development mode for Docker (or other remote JVMs) 2022-02-01 13:58:29 +01:00
LICENSE.txt Create LICENSE.txt 2016-10-28 10:50:09 +02:00
Makefile OF-2765: Use mvnw in Makefile 2024-01-02 15:10:57 +01:00
mvnw Make mvnw executable 2022-10-05 09:52:15 +02:00
mvnw.cmd Update mvnw wrapper 2022-10-05 09:52:15 +02:00
pom.xml OF-2819: Update Netty from 4.1.100 to 4.1.108 2024-03-27 21:14:10 +01:00
README.md update master git branch to main 2022-04-20 08:06:18 -05:00

Openfire alt tag

Openfire CI Project Stats

About

Openfire is a real time collaboration (RTC) server licensed under the Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). Openfire is incredibly easy to setup and administer, but offers rock-solid security and performance.

Openfire is a XMPP server licensed under the Open Source Apache License.

Openfire - an Ignite Realtime community project.

Bug Reporting

Only a few users have access for filling bugs in the tracker. New users should:

  1. Create a Discourse account
  2. Login to a Discourse account
  3. Click on the New Topic button
  4. Choose the Openfire Dev category and provide a detailed description of the bug.

Please search for your issues in the bug tracker before reporting.

Resources

Ignite Realtime

Ignite Realtime is an Open Source community composed of end-users and developers around the world who are interested in applying innovative, open-standards-based Real Time Collaboration to their businesses and organizations. We're aimed at disrupting proprietary, non-open standards-based systems and invite you to participate in what's already one of the biggest and most active Open Source communities.

Making changes

The project uses Maven and as such should import straight in to your favourite Java IDE. The directory structure is fairly straightforward. The main code is contained in:

  • Openfire/xmppserver - a Maven module representing the core code for Openfire itself

Other folders are:

  • Openfire/build - various files use to create installers for different platforms
  • Openfire/distribution - a Maven module used to bring all the parts together
  • Openfire/documentation - the documentation hosted at igniterealtime.org
  • Openfire/i18n - files used for internationalisation of the admin interface
  • Openfire/plugins - Maven configuration files to allow the various plugins available to be built
  • Openfire/starter - a small module that allows Openfire to start in a consistent manner on different platforms

To build the complete project including plugins, run the command

./mvnw verify

However much of the time it is only necessary to make changes to the core XMPP server itself in which case the command

./mvnw verify -pl distribution -am 

will compile the core server and any dependencies, and then assemble it in to something that can be run.

Testing your changes

IntelliJ IDEA:

  1. Run -> Edit Configurations... -> Add Application
  2. fill in following values
    1. Name: Openfire
    2. Use classpath of module: starter
    3. Main class: org.jivesoftware.openfire.starter.ServerStarter
    4. VM options (adapt accordingly):
      -DopenfireHome="-absolute path to your project folder-\distribution\target\distribution-base" 
      -Xverify:none
      -server
      -Dlog4j.configurationFile="-absolute path to your project folder-\distribution\target\distribution-base\lib\log4j2.xml"
      -Dopenfire.lib.dir="-absolute path to your project folder-\distribution\target\distribution-base\lib"
      -Dfile.encoding=UTF-8
      
    5. Working directory: -absolute path to your project folder-
  3. apply

You need to execute mvnw verify before you can launch openfire.

Other IDE's:

Although your IDE will happily compile the project, unfortunately it's not possible to run Openfire from within the IDE - it must be done at the command line. After building the project using Maven, simply run the shell script or batch file to start Openfire;

./distribution/target/distribution-base/bin/openfire.sh

or

.\distribution\target\distribution-base\bin\openfire.bat

Adding -debug as the first parameter to the script will start the server in debug mode, and your IDE should be able to attach a remote debugger if necessary.