Maya mental ray error

We are seeing the following error when we submit a maya mental ray job, the job submits and renders fine if we send it using the standard renderer it works fine.

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code -1073741819. Check the renderer’s output. (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Slave Log
and Settings/vab4661/Local Settings/Application Data/Frantic Films/Deadline/slave/jobsData/First_Spiral_V5_ASM4.mb
0: INFO: Deadline is ignoring error: “Warning: Found camera My_CameraShape.” because plugin setting StrictErrorChecking is enabled and this error is not usually fatal.
0: STDOUT: Warning: Found camera My_CameraShape.
0: INFO: Deadline is ignoring error: “Warning: (Mayatomr.Script): Computed memory limit of -2267 MB is below threshold, setting to 128 MB instead” because plugin setting StrictErrorChecking is enabled and this error is not usually fatal.
0: STDOUT: Warning: (Mayatomr.Script): Computed memory limit of -2267 MB is below threshold, setting to 128 MB instead
0: STDOUT: initMPS with licenseOption 0
---- October 14 2009 – 08:21 AM ----
0: STDOUT: Result: C:/Documents and Settings/vab4661/Local Settings/Application Data/Frantic Films/Deadline/slave/jobsData/First_Spiral_V5_ASM4.ma
0: STDOUT: Fatal Error. Attempting to save in C:/DOCUME~1/vab4661/LOCALS~1/Temp/vab4661.20091014.0821.ma
0: STDOUT: // Maya exited with status -1073741819
0: INFO: Process exit code: -1073741819
0: An exception occurred: Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code -1073741819. Check the renderer’s output. (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)

at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage) (Deadline.Plugins.RenderPluginException)
0: Unloading plugin: MayaCmd
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code -1073741819. Check the renderer’s output. (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)

at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Error Type
RenderPluginException

Error Stack Trace
at Deadline.Plugins.Plugin.RenderTask(Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask()

you scene is set to use negative 2267Mb of ram …

[…] -2267 MB is below threshold, setting to 128 MB instead […]

so mental ray is setting 128Mb of memory limit…which is quite low. This probably makes Maya crash.

Try setting the memory limit to a decent positive number like 2048

Where do I change this setting?