Hello,
premise: we had the UiPath Studio 2021.10.4 installed on a Windows 2016 Server with 8Gb Ram (enterprise license, user-mode installation)
After i’ve checked the hardware requirements for Studio 2022.104, i’ve choose to install it on my local computer, which have 16gb RAM
Now, i’ve converted some UiPath process from 2021.10.4 to 2022.10.4, trying to compile & publish to orchestrator. The memory usage runs over 9gb!!
Furthermore, when i’ve other applications opened, such a chrome sessions, outlook etc… the deploying of the UiPath crashes
from UiPath.Studio.Project.log:
"=> [ERROR] [UiPath.Studio.Project] [50] System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
- at System.Runtime.InteropServices.Marshal.AllocHGlobal(IntPtr cb)*
- at System.Reflection.Internal.StreamMemoryBlockProvider.ReadMemoryBlockNoLock(Stream stream, Boolean isFileStream, Int64 start, Int32 size)*
** at System.Reflection.PortableExecutable.PEReader…ctor(Stream peStream, PEStreamOptions options, Int32 size)* - at Microsoft.CodeAnalysis.ModuleMetadata.CreateFromStream(Stream peStream, PEStreamOptions options)*
- at Microsoft.CodeAnalysis.Scripting.Hosting.RuntimeMetadataReferenceResolver.<>c.<.ctor>b__11_0(String path, MetadataReferenceProperties properties)*
- at Microsoft.CodeAnalysis.Scripting.Hosting.RuntimeMetadataReferenceResolver.ResolveMissingAssembly(MetadataReference definition, AssemblyIdentity referenceIdentity)*
- at Microsoft.CodeAnalysis.CommonReferenceManager
2.ResolveAndBindMissingAssemblies(TCompilation compilation, ImmutableArray
1 explicitAssemblies, ImmutableArray1 explicitModules, ImmutableArray
1 explicitReferences, ImmutableArray1 explicitReferenceMap, MetadataReferenceResolver resolver, MetadataImportOptions importOptions, Boolean supersedeLowerVersions, ArrayBuilder
1 referenceBindings, Dictionary2 assemblyReferencesBySimpleName, ImmutableArray
1& allAssemblies, ImmutableArray1& metadataReferences, ImmutableArray
1& resolvedReferences, ImmutableDictionary`2& implicitReferenceResolutions, DiagnosticBag resolutionDiagnostics)* - at Microsoft.CodeAnalysis.CommonReferenceManager
2.Bind(TCompilation compilation, ImmutableArray
1 explicitAssemblies, ImmutableArray1 explicitModules, ImmutableArray
1 explicitReferences, ImmutableArray1 explicitReferenceMap, MetadataReferenceResolver resolverOpt, MetadataImportOptions importOptions, Boolean supersedeLowerVersions, Dictionary
2 assemblyReferencesBySimpleName, ImmutableArray1& allAssemblies, ImmutableArray
1& implicitlyResolvedReferences, ImmutableArray1& implicitlyResolvedReferenceMap, ImmutableDictionary
2& implicitReferenceResolutions, DiagnosticBag resolutionDiagnostics, Boolean& hasCircularReference, Int32& corLibraryIndex)* - at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.ReferenceManager.CreateAndSetSourceAssemblyFullBind(VisualBasicCompilation compilation)*
- at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.ReferenceManager.CreateSourceAssemblyForCompilation(VisualBasicCompilation compilation)*
- at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.get_SourceModule()*
- at Microsoft.CodeAnalysis.Compilation.CommonBindScriptClass()*
- at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.BindScriptClass()*
- at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)*
- at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)*
- at System.Lazy`1.CreateValue()*
- at System.Activities.ScriptingAotCompiler.BuildAssembly(Compilation compilation)*
- at System.Activities.ScriptingJitCompiler.CompileExpression(ExpressionToCompile expressionToCompile)*
- at System.Activities.JitCompilerHelper`1.Compile[T](LocationReferenceEnvironment environment, Boolean isLocationReference)*
- at System.Activities.JitCompilerHelper`1.Compile[T](CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationReference)*
- at Microsoft.VisualBasic.Activities.VisualBasicHelper.Compile[T](String expressionText, CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationExpression)*
- at Microsoft.VisualBasic.Activities.VisualBasicValue`1.CacheMetadata(CodeActivityMetadata metadata)*
- at System.Activities.CodeActivity`1.OnInternalCacheMetadataExceptResult(Boolean createEmptyBindings)*
- at System.Activities.Activity`1.OnInternalCacheMetadata(Boolean createEmptyBindings)*
- at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)*
- at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack
1& activitiesRemaining, ActivityCallStack parentChain, IList
1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)* - at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)*
- at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors), HResult -2147024882*"
Is it possible to reduce memory consumption?