0

Using Java JCIFS library, I am trying to read the files from a remote system using Server Message Block protocol (SMB) as below:

SmbFile smbFileTest = new SmbFile(fileurl, authentication); //Takes 20sec
SmbFileInputStream input = new SmbFileInputStream(smbFileTest);
byte[] data = new byte[length];
int count = input.read(data); 

I am observing the performance of read is varying from system to system. In some system, I am reading the file of 135 Mb in 2/3 second and in some other system its 15/20 minutes.

All environment has Windows 2012 Server R2 and all are running on same network. Can you please let me know, if any other settings are impacting the performance.

Vy Do
  • 46,709
  • 59
  • 215
  • 313
Lokanath Nayak
  • 89
  • 2
  • 10
  • different network connection? wifi vs ethernet cable? Although 15 minutes for 135 MB is extremely slow. – cello Oct 01 '17 at 12:42
  • I woudn't start using JCIFS for accessing a server, it seems to support only the insecure and dying out variant SMBv1 (see https://stackoverflow.com/questions/41494357/accessing-smb2-1-or-smb3-share-from-java). – JMax Oct 01 '17 at 16:31
  • do i need to do some sttings, can u suggest – Lokanath Nayak Oct 02 '17 at 07:27

1 Answers1

0

Maybe is a CACHE issue? when the cache if full it becomes the bottleneck. Did you try other projects then jCifs? BTW this performance issue is the same with ftp or any other Ethernet/Internet protocol?

Eliad Cohen
  • 378
  • 2
  • 10