SharePoint 2013 performance issue

Dear Experts,

Sine yesterday I am getting below mentioned error message on Event viewer in all the SP servers
And it is effected the SharePoint performance, user are complying the slowness issue. Please advice
 
1.      Table SPDistributedCacheCalls_Partition10 has 460521472 bytes that has exceeded the max bytes 460175067
distributed-cashe.jpg
2.      An exception occurred when trying to issue security token: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs..
tabreedAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohit NairSenior AssociateCommented:
My question is how many servers do you have in the farm. You shouldn't have this service running on all servers.

If you are getting this error from Web front end then please run this powershell script on the failing servers
Stop-SPDistributedCacheServiceInstance -Graceful
Remove-SPDistributedCacheServiceInstance
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tabreedAuthor Commented:
Thanks Mohit, i have 4 servers (two DB, two App, two Wfe) yes Distributed Cache service running in two app & two Wfe servers.

Please advice which is the right server to run this service.
0
Mohit NairSenior AssociateCommented:
App server should only host the service. So please run the script on the WFE server.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

tabreedAuthor Commented:
By stopping the Distributed Cache service on APP servers I will not loss any newsfeed conversation history. I am right.
0
Mohit NairSenior AssociateCommented:
Feeds will never be lost as its stored in the database. But better not to stop distributed cache service from the whole farm. Its always recommended to run it on App server. Since you were facing performance issue ,making this setting will free up your WFE to respond and render your sites and not to think about Distributed cache.
0
tabreedAuthor Commented:
Thank you so much, is there any ways to increase the Distributed cache size I am more concern about performance this way I might boost the user performance
0
Mohit NairSenior AssociateCommented:
Its not that easy. You need to increase your physical memory on the server running Distributed service. When SharePoint Server 2013 is installed, it assigns the Distributed Cache service 10 percent of the total physical memory on the server. The Distributed Cache service uses half of that memory allocation for data storage (also known as cache size), and the other half of that memory allocation is used for memory management overhead. When the cached data grows, the Distributed Cache service uses the entire 10 percent of the allocated memory.

First check the existing memory allocation for Distributed cache by running this script
Use-CacheCluster
Get-AFCacheHostConfiguration -ComputerName ComputerName -CachePort "22233"

Stop the Distributed cache service from all servers through central admin and then run this script to increase the cache limit
Update-SPDistributedCacheSize -CacheSizeInMB CacheSize  (CacheSize should be in MB).

Make sure you increase the physical memory first and then execute the script below.
0
tabreedAuthor Commented:
Thanks, great knowledge transfer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.