web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX 2012 excessive compile time

(0) ShareShare
ReportReport
Posted on by 425

I have just installed AX 2012 on WM Ware, Windows 2008 R2 (incl SQL Server et al). It took almost a day to comple the application. I started the Compile to .NET Framework CIL and kept up'ing the memory as the Ax32Serv.exekept eating it.

After two days it was still running so I stopped it and started again.

Luckily I had a backup so I didn't loose much work. But on my third attempt, there is still the same behaviour.

SQL Server and Ax32Serv.exe seem to be sharing the CPU at about 30%, but Ax32Serv.exe has consumed 600 MB as apposed to SQL Servers 30 MB.

Why has it taken so long?

Is there a memory leak somewhere?

Have I forgetten a magic setting that is not set by default?

*This post is locked for comments

I have the same question (0)
  • Eamonn J. Casey Profile Picture
    425 on at

    Additional information:

    I have run Performance Monitor and the following values are stable:

    Active Sessions: 2

    Total Sessions: 12

    Server Requests: 41


    I start off with a CPU of avg. 18 % that drops to 9 % after AX eats all the memory.


    Memory:

    SQL     AX

    383     215

    378     421

    549     715

    269    1254

     48    1584

    Only after a few minutes, all my memory is gone and the disk I/O goes up... Increasing the memory to 4 Gb only delays the inevitable.

    AX memory stays stable - at MAX.

     

    I have left this run for 2 days and there is still no end in sight!

  • Verified answer
    Eamonn J. Casey Profile Picture
    425 on at

    Seems like that AX does take a LONG time to compile.

    Approximatly 3 days on my virtual machine!

    So, be patient. There is no memory leak. It's just that AX AOS consumes all of the memory you got to give it! :-)

  • Suggested answer
    Community Member Profile Picture
    on at

    On my laptop running AX locally it takes 1 hr 15 min to run a full compile (level 3) and DB sync.  A full CIL build takes 15 min or so.

    Runing an i7 processor at 2.5 GHz with 8 gig of RAM and a SSD drive.

    Either don't run on a virtual machine or get better hardware.  :-)

  • AXT Profile Picture
    1,699 on at

    Use Windows 7 VHD Boot feature to have the full machine’s power: www.tinusworld.com/.../Run-AX-2012-Hyper-V-image-without-VirtualBox.aspx

  • Volker Breitkopf Profile Picture
    on at

    I can support Alan's information about the runtime(s). And it doesn't make a big difference whether it runs in a virtual machine or not.

  • Dick de Jong Profile Picture
    9 on at

    seems that it helps to get an SSD disk .. IO is quite a bottle neck ...

  • Dick de Jong Profile Picture
    9 on at

    @Alan, it is not that we must blame people that they don't have ssd drive, but we should search it in the direction of why do i so desperately need such ...

  • Community Member Profile Picture
    on at

    The excessively long compile times posted above are because of a lack of ram. Your system should have at least 8 GB of RAM. For an in-place upgrade to R2 MS recommends 16 GB. Modern machines should have this.

    I believe there is another thread to cover long compile times in R2. Now it takes 4 hours to compile for me.

  • dtdionne Profile Picture
    5 on at

    Greetings,

    Good to hear I'm not alone.  First successful (I think) AX install, 2012 R3.  I just crossed over the 2.5hr mark on 2 vms, each with 16cores, 128G ram, 2tb vmdk on ssd's

  • dolee Profile Picture
    11,279 on at

    Starting AX2012 R2 CU7, a new compile tool (axbuild.exe) is available which allows the compilation to be run multi-threaded.  It only compiles the application, Full CIL generation still needs to be done using AX client.

    See more information here: msdn.microsoft.com/.../dn528954.aspx

    Actual compile time varies depends on the hardware. My development VM (SSD, 10GB Ram, i5-2500) compiles AX2012 R2 CU7 in less than an hour (forgot the exact number). AX2012 R3 has a bigger code base but the number shouldn't be drastically different.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans