diff --git a/README.md b/README.md index 161ce371..83ae4ef4 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,19 @@ mvn clean package 修改之后运行编译命令```mvn clean package```,rpm包生成在```distribution/target```目录下。 +## Epoll +在linux系统中打开Epoll开关可以提高性能,默认软件包内打包的是x86_64的epoll native sdk。如果是arm64的机器,可以把[broker pom](./broker/pom.xml)文件中修改如下: +```xml + + io.netty + netty-transport-native-epoll + ${netty.version} + + linux-aarch_64 + +``` +然后重新打包。专业版IM服务软件包中有arm64架构的sdk,可以直接替换。epoll只支持x86_64和arm64两个架构,其他架构不要把epoll开关打开。 + ## 升级说明 1. 从0.42 版本增加了群成员数限制,默认为2000。如果您从之前的版本升级到这个版本或以后,需要注意到群成员数的限制。升级之后超出限制的群不受影响,但不能继续加人,如果您想修改默认值,可以在升级版本之后,修改t_setting表,把默认的大小改为您期望的人数。另外修改t_group表,把已经存在的群组max_member_count改成您期望的,然后重启。 2. 0.50版本添加了是否允许客户端发送群操作通知的配置。如果您在客户端自定义群通知,需要在服务器端配置允许,没有使用自定义群操作通知的不受影响。*** diff --git a/broker/pom.xml b/broker/pom.xml index ee386539..dd73674c 100644 --- a/broker/pom.xml +++ b/broker/pom.xml @@ -124,9 +124,7 @@ netty-transport-native-epoll ${netty.version} linux-x86_64 - + diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index aa2e9ded..779ae62f 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -398,7 +398,7 @@ push.ios.server.address http://localhost:8085/ios/push # gain and reduced GC. # http://netty.io/wiki/native-transports.html for more information #********************************************************************* -# 如果是linux系统,一定要打开下面这个参数,能大幅度提高性能 +# 如果是linux系统,一定要打开下面这个参数,能大幅度提高性能。默认只支持x86_64架构。如果是arm64架构,可以按照项目说明来更新epoll SDK。其他架构不支持epoll。 #netty.epoll true #*********************************************************************