Telnet Connection lost

Hi everyone.
When I want to connect Asterisk Ami With Telnet for View and Save Log of Voip ,
After 3 or 4 Minute Then Connection was lost .
the Error is:
“Connection To host Lost”

Ami Configuration is:

writetimeout:5000 read = system,call,all,log,verbose,command,agent,user,con fig,command,dtmf,reporting,cdr,dialplan,originate write = system,call,all,log,verbose,command,agent,user,con fig,command,dtmf,reporting,cdr,dialplan,originate

My Network Connection is Fine
What Can I do?Please Help.