You may want to take a look at Job Object and cook this limitation right inside the application you run into the batch script
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684161(v=vs.85).aspx example C++ #include <Windows.h> #define BYTES_PER_GIGABYTE ((size_t)1073741824); ... JOBOBJECT_EXTENDED_LIMIT_INFORMATION info; info.ProcessMemoryLimit = mem_limit_gb * BYTES_PER_GIGABYTE; ... This way you application will end right away if it reach that limits. It's always a good idea to make this code for any platform not just Windows For Linux you can go ulimit way: http://coldattic.info/shvedsky/pro/blogs/a-foo-walks-into-a-bar/posts/40 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0b8c1175-5d70-41c1-934c-7d73cb01fc3d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
