Skip to main content
Solved

Smart Groups Slow To Load

  • March 14, 2012
  • 7 replies
  • 14 views

Forum|alt.badge.img+5
  • New Contributor
  • 8 replies

I'm running 8.43 on a Lion server (that only runs JSS and SUS) and when I attempt to view a smart group in JSS it takes 5+ minutes if it loads at all. Any ideas on how to remedy this? The group in question only contains 9 machines.

Best answer by Cyberghost

I had the same prob. DB Size 33 GB. Now with 2GB the JSS is much fast. Is it possible to activate "Flush Policy Logs"?

7 replies

Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • March 14, 2012

how big is your DB?


Forum|alt.badge.img+20
  • Valued Contributor
  • 732 replies
  • March 14, 2012

I have the same issues. I made a smart group yesterday and its still slowly updating today.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • 8 replies
  • March 14, 2012

Roughly 20gbs.


Forum|alt.badge.img+7
  • Contributor
  • 28 replies
  • Answer
  • March 14, 2012

I had the same prob. DB Size 33 GB. Now with 2GB the JSS is much fast. Is it possible to activate "Flush Policy Logs"?


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • 8 replies
  • March 14, 2012

I'll try flushing the logs over night and report back.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • 8 replies
  • March 15, 2012

Deleted a number of the older logs and now the JSS is running very smoothly and is quick to return smart groups and other data. Thanks for your help as always.


Forum|alt.badge.img+3
  • New Contributor
  • 8 replies
  • October 29, 2012

Sorry to revive a dead thread, but I've found that you can add an extra index to the usage_logs table. I think this needs to be recreated every time the JSS is restarted, but it seems to do the trick every time I need to query a smart group:

CREATE INDEX `computer_mtime` ON `usage_logs` (`computer_id`,`date_entered`);

This does have the tradeoff that inserting new data may be somewhat slower, but it beats being unable to query smart group membership :)