Openfire Performance

My system have 6000 user and I want all user online status as well as online offline notification.

So I create one group “XYZ” with “share contact list to all” option and import 6000 user in XYZ group.

after do this my chat is very slow ,it take 30 seconds to receive message or notification

System:Intel Xeon 2.4 ghz

ram 4 gb

Windows server 2008 R2 64 bit.

Sql server 2012

But open-fire process consume ram and processor only 20%

Please help me to resolved this issue.