This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection timed out: connect  RSS feed

 
vittal mareddy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I would like to have advice on multiple issues, code snippet java code.



1. above snippet of code setup locally, worked one day but later throws below exception, what might causing?

)

2. Basically I am trying to trouble shoot performance issue, same code have been working for years i.e. to copy zip file(3KB to 800MB) from samba server to appserver but since recent time copy function takes long time for a give file, please advice what might cause?
 
A.J. Côté
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

The network might be the cause. Also, the samba server might be the cause.
 
vittal mareddy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we map source drive (\\xxx.xx.xx.xx\abcd95\D\NJ$) from target machine (aaaaaa.bbb.ccc), using window copy option transfer is quick 160MB takes 3 sec. Whereas this functionality we are doing from code implemented using JAVA API with SAMBA protocol (jcifs-1.3.17.jar) takes longer time. This implementation been working fine 8+ years, no change in implementation, since recently performance degraded, transfer take 40+ minutes, sometime transfer fails. Is it some would have changed on samba server/configuration?, please advise.
 
A.J. Côté
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your are still using a 1K buffer??

http://www.coderanch.com/t/657190/java-io/java/Copy-large-size-file-NAS
 
vittal mareddy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code was working for many years with , some kind of configuration changed on samba server, I disabled dfs property in jcifs, looks working in non production environment, yet to verify in production, will keep posted once verified. Thanks for helping.
 
A.J. Côté
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vittal mareddy wrote:code was working for many years with , some kind of configuration changed on samba server, I disabled dfs property in jcifs, looks working in non production environment, yet to verify in production, will keep posted once verified. Thanks for helping.


https://wiki.samba.org/index.php/Distributed_File_System_%28DFS%29
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!