Hello Fabien, You're right , but the answer is in the document attached to my first reply (page 11) Configure the action Choose “start a program” Select the program mwsr.exe On the argument field set URL of the administration page with preload parameter set to 1, for instance : "http://localhost/Advisor/admin/Administrator_Page.aspx?preload=1" Regards
... View more
Hello Fabien, The Preload method is a way to dramatically improve the connection times on Advisor. In the same time you can also generate (or put pages on the cache) the pages you want. Schedule the Preload before the beginning of the working hours (6 O'clock for example) With the bDiscarding parameter you can unload Advisor before restarting it (it is a way to cleanup the daily consumed memory of the MGWSPRO process) The Preload feature have no impact on RFC
... View more
In MEGA 2009 SP5 the Lab developed a new way to improve performances of Advisor with the Preload feature.
The official communication around this feature will happen with the delivery of the Release 7 in July, but you can use it with MEGA 2009 SP5 CP6
What is the preload feature ?
At the first Advisor connection, four processes (Windows processes) are launched on the Web Server.
The processes open the MEGA Repository, load the MetaModel definitions, load the profile preferences, load the Web template definitions, etc.
These steps are very complex and generate a lot of request to the database, it is the reason why they are relatively time expensive
After 20 minutes of idle time (without requests) the processes are stopped by IIS and when the next user arrive, he have to wait the same launch time than the first one.
The preload feature is an Advisor configuration which give you the ability to schedule the first loading and maintain it active all the day. The document attached in this post explain how to implement it.
How it can help you to generate specific page ?
Your question concerning the pre-generation of Advisor pages could be addressed if you add the list of the pages to be generated in the PreLoadProfil function of the preload.cs file in the App_Code folder of Advisor.
In the example below, the pages of the diagrams declared in the sDiagramArray are generated at the preload of each profile
public class preload
static public bool PreLoad(MEGAWebAccessLib.MegaWebAccessServerClass pMWA , settings pSettings , int nLevel, bool bDiscarding)
bool bPreloading = true;
//string sDiagramArray = new string;
//sDiagramArray = "6AF97897469B00D5"; // "A186A2574F336478";
//sDiagramArray = "6B62C29742356904"; // "A186A26C4F336667";
//sDiagramArray = "8DFE8E7945120005"; // "A186A20E4F336292";
//sDiagramArray = "6D6ADF6940C545B8"; // "A186A69D4F336E4B";
//sDiagramArray = "4CE46666448D016A"; // "A186A6134F336A78";
//sDiagramArray = "DE855E0B48C12B71"; // "A186A63F4F336C8F";
if (bDiscarding && (nLevel == 1))
//pMWA.Discard(1, "C:\Users\Public\Documents\MEGA 2009 SP4\Demonstration");
//PreLoadProfil(pMWA, pSettings, pSettings.settings_language_Italiano, "Guest", "", "C:\\Users\\Public\\Documents\\MEGA 2009 SP4\\Demonstration", "Adventure", sDiagramArray);
//PreLoadProfil(pMWA, pSettings, pSettings.settings_language_Italiano, "Guest", "", "C:\\Users\\Public\\Documents\\MEGA 2009 SP4\\Demonstration", "Adventure",sDiagramArray);
bPreloading = false;
... View more