Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

ServerLoadClassMethods and slow performance recalling pending vendor invoices

(0) ShareShare
ReportReport
Posted on by

Hello,

We are running AX 2012 R3.  When our users recall a pending vendor invoice from workflow for the first time, the dialog that pops up that allows the user to enter a comment and asks the user to confirm whether they want to recall the workflow takes approx.15-20 minutes to open.  On subsequent attempts, the dialog pops up immediately.  If a user signs out of AX and logs back in, they experience the same issue again.  I tried debugging and couldn't see what was slowing things down so I created a trace using the tracing cockpit and opened it up using the trace parser.  In the call stack, I see a lot of calls to ServerLoadClassMethods with different class IDs.  It looks like some sort of caching is being performed.  A google search of ServerLoadClassMethods and Dynamics AX didn't turn up anything helpful.  Does anyone know what this ServerLoadClassMethods is and why it would be called so many times? Here's a screen shot of my trace.  This line is repeated over and over again with different class IDs: 

pastedimage1578928743469v1.png

I'm a bit stumped.  We've been operating AX 2012 for about 6 or 7 years now and users only seemed to notice this somewhat recently.  Does anyone have any ideas about this ServerLoadClassMethods?  Is it necessary?  Any way to avoid it?  Any ideas would be greatly appreciated!

  • Verified answer
    A.Prasanna Profile Picture
    A.Prasanna 8,177 on at
    RE: ServerLoadClassMethods and slow performance recalling pending vendor invoices

    ServerLoadClassMethods is a RPC event and not refers any class directly

    www.mathdax.ca/.../dynamics-ax-rpc-event-list.html

    If you go to overview tab you will able to see top X++ 5 method by Inclusive /Exclusive Duration.

    you can look at those first because you can find them straight .

    I think  from Class ID you can find Class name using below code Block

    gvkkishore.wordpress.com/.../

    Hope this will Help.

    Thanks & Regards,

    Amith Prasanna

  • Greg's Mom Profile Picture
    Greg's Mom on at
    RE: ServerLoadClassMethods and slow performance recalling pending vendor invoices

    I found this:

    fix.lcs.dynamics.com/.../877036

    I guess microsoft is not concerned with this issue.

  • Greg's Mom Profile Picture
    Greg's Mom on at
    RE: ServerLoadClassMethods and slow performance recalling pending vendor invoices

    I was able to test on an old server with our last release before we migrated from AX 2012 R2 to AX 2012 R3 and I see the issue is not happening there.  I don't have access to a server with our first R3 release but I did test this on a few prior releases and the issue seems to be happening in R3 and not in R2.  I'm checking LCS for any possible fixes but still curious if anyone has ideas on what ServerLoadClassMethods is doing and/or ideas of how to address or troubleshoot this issue.

  • Greg's Mom Profile Picture
    Greg's Mom on at
    RE: ServerLoadClassMethods and slow performance recalling pending vendor invoices

    Yes we do have a ton of both ISV solutions and customization in our environment.  We have a monthly release with new features and bug fixes that go out to our production users.  I am told this is something that's been happening for a long time and users have just been ignoring or putting up with it until now.  I will check RAM/CPU utilization in our test environment to see if that looks like a problem but from my trace, it appears this is not a hardware issue as much as a problem with the client triggering this ServerLoadClassMethod for some 9000 classes.  Each one takes around 100 ms.  If you add that up, it comes to 15 minutes.  Even if this only took 10 ms for each call, that would take 1.5 minutes which would be much improved but still a bit unexpected for a dialog to prompt a user for confirmation of whether they want to recall the workflow.  I don't suspect a hardware limitation but maybe an issue with the client/kernel or maybe some customization that I'm unaware of is causing this ServerLoadClassMethod to trigger.  Debugging, I cannot see this ever happen.  It looks like kernel code to me.  

  • A.Prasanna Profile Picture
    A.Prasanna 8,177 on at
    RE: ServerLoadClassMethods and slow performance recalling pending vendor invoices

    Do you have ISV solutions or Customization in your Environment ? have you done any changes recently ?
    How about the Hardware Performances (RAM /CPU ) Utilization ?

    Regards,

    Amith Prasanna

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans