Maybe is the amount of agents, try to run a small query, for example list of MM:
list management modules matching (.*)
If the problem persists, try to enable VERBOSE logging on the EM side and review the logs, hopefully you will get more meaningful messages