Projects tigase _server server-core Issues #631
Configurable limit of roster size (#631)
Closed
wojciech.kapcia@tigase.net opened 9 years ago
Due Date
2016-01-21

As per comment https://projects.tigase.org/boards/15/topics/4825?r=6160#message-6160:

I just run the following code on my local machine with 8GB RAM onboard:

int maxRosterSize = new Long(Runtime.getRuntime().maxMemory() /250000L).intValue();

System.out.println("maxRosterSize: " + maxRosterSize);

and got 7635.

It's too big for one user and potentially a possible vulnerability for the server.

I see the following problems:

  1. It will be hard to serialise/deserialize such a big roster for server
  1. load for DB.
  1. it's hard for client to load such a big roster - traffic issue

would be great to have a possibility to limit it via config. For example set it to 100 or something like that

Add configuration option to limit roster size

wojciech.kapcia@tigase.net commented 9 years ago

Implemented and pushed into repository, will be included in the next nightly.

It's possible to configure it with the following option:

sess-man/plugins-conf/jabber\:iq\:roster/max_roster_size=100
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
3849
Version
tigase-server-7.1.0
Spent time
10h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#631
Please wait...
Page is in error, reload to recover