<div dir="ltr"><div>Based on articles I've come across online, it seems that the following settings have resolved the issue:</div><div><br></div><div>LibraryCacheSize                   = 32<br>#SessionCacheSize                   = 2<br>SessionCacheSize                   = 4<br>DBPageSize                         = 32<br>DBXMLPageSize                      = 32<br>LibraryLogBufferSize               = 12<br>SessionLogBufferSize               = 1<br>#DBMaxTransactions                  = 1000<br>DBMaxTransactions                  = 2000<br>SessionDBPageSize                  = 2<br>SessionDBXMLPageSize               = 0.5<br>#DBTimeout                          = 0.2<br>DBTimeout                          = 0.6<br>#DBMaxLockers                       = 1000<br>DBMaxLockers                       = 2000</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 31, 2023 at 10:30 AM David Bowen <<a href="mailto:dbowenrci@gmail.com">dbowenrci@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm encountering an issue when trying to load packages using Maestro. For example, I'm attempting to load the package created from our Production environment into the Development environment and I get the following errors:<br><br>The remote server returned an error: (559) MgDbXmlException.: <br>An exception occurred in DB XML component.<br>Error: DB_BUFFER_SMALL: User memory too small for return value<br><br>- MgResourceServiceHandler.ProcessOperation() line 80 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceServiceHandler.cpp<br>- MgOpApplyResourcePackage.Execute() line 96 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\OpApplyResourcePackage.cpp<br>- MgServerResourceService.ApplyResourcePackage() line 815 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ServerResourceService.cpp<br>- MgLibraryRepositoryManager.ApplyResourcePackage() line 148 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp<br>- MgLibraryRepositoryManager.LoadResourcePackage() line 183 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp<br>- MgResourcePackageLoader.Start() line 145 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgResourcePackageLoader.PerformOperation() line 223 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgResourcePackageLoader.SetResource() line 303 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgRepositoryManager.SetResource() line 559 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\RepositoryManager.cpp<br>- MgRepositoryManager.AddResource() line 532 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\RepositoryManager.cpp<br>- MgResourceContentManager.AddResource() line 178 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceContentManager.cpp<br>- MgResourceContentManager.PutDocument() line 619 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceContentManager.cpp<br>- MgResourceDefinitionManager.PutDocument (MgLibraryResourceContents.dbxml)() line 545 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp<br><br><br>System.Exception: The remote server returned an error: (559) MgDbXmlException.: <br>An exception occurred in DB XML component.<br>Error: DB_BUFFER_SMALL: User memory too small for return value<br><br>- MgResourceServiceHandler.ProcessOperation() line 80 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceServiceHandler.cpp<br>- MgOpApplyResourcePackage.Execute() line 96 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\OpApplyResourcePackage.cpp<br>- MgServerResourceService.ApplyResourcePackage() line 815 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ServerResourceService.cpp<br>- MgLibraryRepositoryManager.ApplyResourcePackage() line 148 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp<br>- MgLibraryRepositoryManager.LoadResourcePackage() line 183 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp<br>- MgResourcePackageLoader.Start() line 145 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgResourcePackageLoader.PerformOperation() line 223 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgResourcePackageLoader.SetResource() line 303 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourcePackageLoader.cpp<br>- MgRepositoryManager.SetResource() line 559 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\RepositoryManager.cpp<br>- MgRepositoryManager.AddResource() line 532 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\RepositoryManager.cpp<br>- MgResourceContentManager.AddResource() line 178 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceContentManager.cpp<br>- MgResourceContentManager.PutDocument() line 619 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceContentManager.cpp<br>- MgResourceDefinitionManager.PutDocument (MgLibraryResourceContents.dbxml)() line 545 file c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp<br><br> ---> System.Net.WebException: The remote server returned an error: (559) MgDbXmlException.<br>   at System.Net.HttpWebRequest.GetResponse()<br>   at OSGeo.MapGuide.MaestroAPI.HttpServerConnection.UploadPackage(String filename, StreamCopyProgressDelegate callback) in C:\projects\mapguide-maestro\OSGeo.MapGuide.MaestroAPI\Http\HttpServerConnection.cs:line 1511<br>   --- End of inner exception stack trace ---<br>   at OSGeo.MapGuide.MaestroAPI.HttpServerConnection.UploadPackage(String filename, StreamCopyProgressDelegate callback) in C:\projects\mapguide-maestro\OSGeo.MapGuide.MaestroAPI\Http\HttpServerConnection.cs:line 1525<br>   at Maestro.Packaging.PackageBuilder.UploadPackage(String sourceFile) in C:\projects\mapguide-maestro\Maestro.Packaging\PackageBuilder.cs:line 183<br>   at Maestro.Packaging.PackageProgress.<>c__DisplayClass10_0.<UploadPackage>b__0() in C:\projects\mapguide-maestro\Maestro.Packaging\PackageProgress.cs:line 175<br>   at Maestro.Packaging.PackageProgress.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in C:\projects\mapguide-maestro\Maestro.Packaging\PackageProgress.cs:line 395<br>   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)<br>   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)<br>   <br>Based on previous threads, I've attempted to increase the following parameters in the serverconfig.ini file but have had no success.<br>   <br>#SessionDBXMLPageSize = 0.5<br>SessionDBXMLPageSize = 1.0<br>#SessionDBPageSize = 2<br>SessionDBPageSize = 4<br>#SessionLogBufferSize = 1<br>SessionLogBufferSize = 5<br>#LibraryLogBufferSize = 12<br>LibraryLogBufferSize = 24<br>#DBXMLPageSize = 32<br>DBXMLPageSize = 64<br>#DBPageSize = 32<br>DBPageSize = 64<br><br>Has anyone else encountered this issue and have figured out a solution?<br><br>Thanks,<br>David</div>
</blockquote></div>