Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
2010-05-02T22:09:54Z
I have a task that runs fine from the command line or Windows Scheduler. However when running from Visual Cron it gets a fatal error

Exception of type System.OutOfMemoryException was thrown.

Is there a maximum task allocated memory in Visual Cron -- and if so how do I change it

thanks
Sponsor
Forum information
Support
2010-05-02T23:38:30Z
How large output does the Task have?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-02T23:43:37Z
I can run the task so that it can use variable amounts of memory. So I experimented with that and it seems to die when it uses around 40M
Support
2010-05-02T23:49:00Z
We will try to reproduce this. The memory allocations are done in .NET so it is centrally controlled by .NET.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-04T16:14:13Z
We have investigated this further. Here are the results:
* This issue occurs with either client or tray client
* When it occurs with client, the client is using about 185 MB of memory
* When it occurs with tray client it is using about 23 MB of memory
* The error ALWAYS occurs when the task being run exceeds 200 MB of memory usage. We have duplicated that multiple times

In all I am very impressed with your application and we would like to buy an unlimited license, but we feel we need to resolve this issue first
Support
2010-05-04T16:21:28Z
Thank you for your research.

1. What kind of Task was this?

2. I assume you are having the client on the same machine as the server. How much memory do you have installed and how much memory free before running the Task?

3. Do you do anything special with the output of the Task - like sending it further via Variable etc?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-04T17:27:17Z
* The Tasks is a .Net application that creates Excel files.
* The machine runs a client (and not a server)
* The machine has 4 GB of memory, and the maximum usage was around 1GB
* The CPU usage was under 5% at all times
Guest
2010-05-04T17:28:18Z
Also, we do not do anything special. The task runs and ends as one single executable
Support
2010-05-04T17:30:11Z
But it is of task type Execute, right?

I meant that this machine had the VisualCron server installed, is that correct (Client and Server are on the same machine).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-04T17:47:33Z
Ah .. No . It is "Remote Execute"
Support
2010-05-04T19:23:09Z
I am not sure I follow you 100%. We were expecting another task type. Are you getting the memory problem on the target or server machine?

If the answer is the server machine it sounds really strange as we are just sending a commandline to the remote machine.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-04T19:51:04Z
The memory issue occurs on the target machine.
* On the server we create task as "remote execute" on the target server (which has only a client)
* When it runs on the target machine (client) it will fail if the executable needs more than roughly 100 MB
Support
2010-05-04T23:06:00Z
Hi again,

this was something new for us as we never have received this kind of report before. After some research we found that WMI, which is the underlying technology for remote execution, has a default memory limit of 127 MB.

It should be possible to alter this limit. We have create a small application that *should* change the limit to 0,1 GB below the total memory on the machine.

Please run this on your target machine and the run the Task again. Please get back with result.
File Attachment(s):
WMIConfig.zip (5kb) downloaded 57 time(s).

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-05T01:00:38Z
We ran the job on the target machine. It returns with a message "SetQuota result:true"
However, the same issue occurs again. Also in exactly the same memory size
Support
2010-05-05T10:02:40Z
That was a pity. The problem is described here and maybe you can run the VBS script:

http://us.generation-nt....emote-help-25987582.html 
http://blogs.technet.com...mi-provider-service.aspx 

We tried to alter these values described in here:

http://msdn.microsoft.co...aa394671%28VS.85%29.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-05T13:26:27Z
This is helpful! We will try it and inform you of result
Thanks for all your assistance
Guest
2010-05-05T16:41:54Z
Good News!
Your script actually worked.. the only thing is that we needed to reboot the machine after running. One of our two large memory tasks ran fine. We are now running the other
Thanks much.. we will keep you informed
Support
2010-05-05T16:43:10Z
Thanks for the feedback. Did you use the original file I sent? Would be great if that works after restart.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2010-05-05T16:45:25Z
Yes... your executable worked exactly as advertised. A reboot is necessary.
Guest
2010-05-05T20:13:03Z
We got our second application running large memory running.
This is very good! Thanks much for your help!
I think we will go for a site license.
Support
2010-05-05T20:22:05Z
Thanks for the feedback. We are not sure if we should automate this or if we should put this setting somewhere. As we have not heard of this before we assume that this is not the normal case (to run applications that uses so much memory). However, it is important to know that this workaround works. Thank you for your patience.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top