The start of agent triggered with an event is too much slow

I have created an agent that send a mail message to the server after new mail is arrived, but sometimes it doesn’t work at all, but if i run manually the agent it works fine, sometimes it starts but take two minutes or more to be executed…any suggestion? thank youbest regards

mary