Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Connection timed out: connect

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your are still using a 1K buffer??

https://coderanch.com/t/657190/java-io/java/Copy-large-size-file-NAS
 
vittal mareddy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic