Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

If the server is working couple of minutes or hours client freeze every X seconds

 
Amit Shef
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
As the title says it all.

But I'll explain even further.

Even if i dont send messages to server and the server is working after couple of minutes or hours.. the client starts to freeze every X seconds...
And i mean that on the first couple minutes it works clean without freezes and after that the client freeze.
I dont know why.

Client:


 
Mohamed Sanaulla
Saloon Keeper
Posts: 3165
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont find the code compilable. Can you please post a compilable code?

Secondly, You are creating Resources like BufferedReader, Sockets, PrintWriter but not closing it. This will lead to these resources lying around open for more longer time than required. Also see if you can profile the application using some profiling tools to identify if Garbage Collection is kicking in with long pauses which is leading to the freeze.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic