Openfire和LDAP问题

时间:2010-06-08 12:09:33

标签: openfire

提前感谢您的帮助。

有没有人在openfire中看到这个问题?

目前我使用Openfire Fedora和Auth使用Windows 2003,并且还使用mysql作为数据库。当我提出两个客户并相互交谈时,消息之间的时间很慢。有时,发送给该人的内容可能需要5-15分钟(这与openfire服务器上只有两个人)。我使用端口389运行了一个tcp转储,看到该机器正在运行数千个针对ldap的查询。当我将它插入wireshark时,我注意到它正在传输整个联系人列表或检查整个联系人列表的状态?

当我在openfire上运行调试时,我在日志中只显示了这条小消息:

2010.06.08 07:01:17  LdapManager: Starting LDAP search...
2010.06.08 07:01:17 LdapManager: ... search finished
2010.06.08 07:01:17 LdapManager: Creating a DirContext in LdapManager.getContext()...
2010.06.08 07:01:17 LdapManager: Created hashtable with context values, attempting to create context...
2010.06.08 07:01:17 LdapManager: ... context created successfully, returning.
2010.06.08 07:01:17 LdapManager: Trying to find a groups's DN based on it's groupname. cn: Spark agents CLT, Base DN: OU="Hidden",DC="Hidden",DC="net"...
2010.06.08 07:01:17 LdapManager: Creating a DirContext in LdapManager.getContext()...
2010.06.08 07:01:17 LdapManager: Created hashtable with context values, attempting to create context...
2010.06.08 07:01:17 LdapManager: ... context created successfully, returning.
2010.06.08 07:01:17 LdapManager: Starting LDAP search...
2010.06.08 07:01:17 LdapManager: ... search finished
2010.06.08 07:01:17 LdapManager: Trying to find a groups's DN based on it's groupname. cn: Spark agents CLT, Base DN: OU="Hidden",DC="Hidden",DC="net"...
2010.06.08 07:01:17 LdapManager: Creating a DirContext in LdapManager.getContext()...
2010.06.08 07:01:17 LdapManager: Created hashtable with context values, attempting to create context...
2010.06.08 07:01:17 LdapManager: ... context created successfully, returning.
2010.06.08 07:01:17 LdapManager: Starting LDAP search...
2010.06.08 07:01:17 LdapManager: ... search finished 

我认为这是我的配置,并开始研究openfire网页上的缓存设置。我按照页面的推荐调整了设置,但仍然遇到了同样的问题。我似乎没有缓存联系人列表,或者这可能是一个从未修复或实现的功能。

有没有人经历过这个?我在网上搜索过,我发现其他人对openfire有很好的经验,没有像我这样的问题,或者是因为没人检查过这些问题?

目前我创建了一个新的域控制器并将openfire移动到该计算机,以便它可以运行本地查询。这似乎有助于降低速度,但是当我运行服务器性能管理器工具时,我看到只有两个人使用该openfire服务器,我每秒运行593.7请求。

感谢您的帮助,如果我没有提供足够的数据,请告诉我您的需求,我可以找到它。

从对话中添加其他信息: 我仍在仔细检查我的设置,但它们似乎是正确的。当我做一个wireshark时,我注意到它发送整个联系人列表作为查询,我假设它在名单列表下缓存。然而,即使设置了一些cashe字段也看不到使用。

我查看了你发送的链接,我之前已将其添加到我的openfire中,希望能解决它,仍然是同样的问题。

有没有人做过服务器性能管理器,看看你是否和我有同样的问题?或者一个tcpdump。当我在同一台服务器上运行openfire和Ldap时,它似乎只需要2-5秒而只需要两个人,而不是2-5分钟它没有打开它。最后检查性能管理器说每秒600次。

我的主要是它不是缓存,但我不确定这是否正确。

感谢您的反馈!

1 个答案:

答案 0 :(得分:0)

也许它根本找不到ldap。从日志转储中,看起来上下文构建可能是空的,整个过程重新开始。

我会仔细看看你的配置。

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/ldap-guide.html

基本D​​N:OU =“隐藏”,DC =“隐藏”,DC =“净”//这对您的设置有效吗?