The invention discloses a heartbeat frequency adjusting method and a server, and belongs to the field of Internet of Things communication. In the present application, the server can acquire subscription service information of a first terminal, acquire target log data associated with a service indicated by the subscription service information from a plurality of log data according to the subscription service information, estimate a push probability of a service message according to the target log data, and then adjust a heartbeat frequency according to the push probability. Therefore, the center hop frequency can be adjusted according to the pushing probability, and compared with the prior art that a fixed heartbeat frequency is always adopted, the problems that when the adopted heartbeat frequency is high, the load pressure of the server is too high, and consumed flow is too high can be avoided. Meanwhile, the problem that when the adopted heartbeat frequency is low, whether connectionis available or not cannot be detected in time, and consequently the arrival rate of message pushing is low can be solved.