« Return to Thread: Performance Issue with jcifs-1.2.19 and higher

Performance Issue with jcifs-1.2.19 and higher

by rosed :: Rate this Message:

Reply to Author | View in Thread

I'm seeing a pretty big performance hit when using jcifs-1.2.19 or higher with the ListFiles example.  Here are three test runs using 1.2.18, 1.2.19 and 1.2.21:

D:\JCIFS\jcifs_1.2.18\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.18.jar;. ListFiles smb://rosed:test@dr670/snf/
 test/ users/
2 files in 6094ms

D:\JCIFS\jcifs_1.2.19\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.19.jar;. ListFiles smb://rosed:test@dr670/snf/
 test/ users/
2 files in 14391ms

D:\JCIFS\jcifs_1.2.21\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.21.jar;. ListFiles smb://rosed:test@dr670/snf/
1: new Socket: java.net.DatagramSocket@13a328f
0: socket closed: java.net.DatagramSocket@13a328f
1: new Socket: java.net.DatagramSocket@a01335
0: socket closed: java.net.DatagramSocket@a01335
1: new Socket: Socket[addr=/157.184.70.36,port=445,localport=4543]
 test/ users/
2 files in 14360ms

As you can see 1.2.19 and 1.2.21 are taking over twice as long to return the list of files from a Windows share.

Here are the results using the FQDN:

D:\JCIFS\jcifs_1.2.21\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.18.jar;. ListFiles smb://rosed:test@dr670.mw.prtdev.lexk.com/snf/
 test/ users/
2 files in 78ms

D:\JCIFS\jcifs_1.2.21\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.19.jar;. ListFiles smb://rosed:test@dr670.mw.prtdev.lex.com/snf/
 test/ users/
2 files in 8375ms

D:\JCIFS\jcifs_1.2.21\examples>java -classpath D:\eclipse\workspace\Test\thi
rdParty\jcifs\jcifs-1.2.21.jar;. ListFiles smb://rosed:test@dr670.mw.prtdev.lex.com/snf/
1: new Socket: java.net.DatagramSocket@1113708
0: socket closed: java.net.DatagramSocket@1113708
1: new Socket: Socket[addr=/157.184.70.36,port=445,localport=4804]
 test/ users/
2 files in 8343ms

In this case 1.2.19 and 1.2.21 are taking over 100 times longer.

Thanks,
Danny

 « Return to Thread: Performance Issue with jcifs-1.2.19 and higher

LightInTheBox - Buy quality products at wholesale price!