[jcifs] Performance Issue with jcifs-1.2.19 and higher

rosed rosed at lexmark.com
Thu May 29 20:25:22 GMT 2008


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 at 13a328f
0: socket closed: java.net.DatagramSocket at 13a328f
1: new Socket: java.net.DatagramSocket at a01335
0: socket closed: java.net.DatagramSocket at 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 at 1113708
0: socket closed: java.net.DatagramSocket at 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
-- 
View this message in context: http://www.nabble.com/Performance-Issue-with-jcifs-1.2.19-and-higher-tp17545050p17545050.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.



More information about the jcifs mailing list