Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket program fails  RSS feed

 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I have one socket program(POJO) running is unix machine and which is receiving the messages. When I start the service it worked perfectly. In the evening I stopped the service, Again next day morning I started the service and am getting

Caused by: java.net.SocketException: Connection timed out:could be due to invalid address

Again after restarting the unix machine It works.. Still we are unable to identify the cause. This happens daily. We guess this may be because of Memory leak.. Someone please advise us..
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meet Gaurav wrote:We guess this may be because of Memory leak..


A socket exception caused by a memory leak?
Have you tried monitoring your application to see if it indeed does have a memory leak?
With an error message like "could be due to invalid address ", I'd suspect a network problem. Does either the server or client use DHCP?
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you it's not a memory issue.. But how come it's working after restarting the server..

We are not using Dynamic Host Configuration Protocol ..
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meet Gaurav wrote:But how come it's working after restarting the server..


You haven't given us enough detail to take more than a guess. Have you tried to Isolate The Problem or reproduce the problem with other hardware/software?
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are doing more R&D on this.. Previuosly we used HP Unix machine and now we migrated to AIX machine and it's IBM Java. thats the difference. Everytime while starting it's not working and after restarting the server it's working..

Please assit
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!