Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMB2 file operations are too slow. #816

Open
umeshmit3 opened this issue Feb 15, 2024 · 0 comments
Open

SMB2 file operations are too slow. #816

umeshmit3 opened this issue Feb 15, 2024 · 0 comments

Comments

@umeshmit3
Copy link

umeshmit3 commented Feb 15, 2024

In our application we are using SMBJ library for SMB2 protocol. When we perform any SMB2 file operation, each calls like diskshare.isExists() is very slow. We are observing the slowness as it needs to make the new connection and session object every time and the network latency is high (i.e. SMB server is located in different datacenter).

If we perform the same operation using SMB1 which is implemented using jcifs library, the operations are quite fast (3-4 times faster). This is because the connection and session objects are getting cached and skipped these network calls.

Hence to match the SMB2 performance with SMB1, can someone suggest any workaround or fix for SMBJ library, which can enable caching for connection and session objects for each file operations calls using same share.

Thanks in advance...!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant